minix/commands
Erik van der Kouwe b42c66ed10 this patch adds access to the debug breakpoints to
the kernel. They are not used atm, but having them in trunk allows them
to be easily used when needed. To set a breakpoint that triggers when
the variable foo is written to (the most common use case), one calls:

breakpoint_set(vir2phys((vir_bytes) &foo), 0,
  BREAKPOINT_FLAG_MODE_GLOBAL |
  BREAKPOINT_FLAG_RW_WRITE |
  BREAKPOINT_FLAG_LEN_4);

It can later be disabled using:

breakpoint_set(vir2phys((vir_bytes) &foo), 0,
  BREAKPOINT_FLAG_MODE_OFF);

There are some limitations:

- There are at most four breakpoints (hardware limit); the index of the
  breakpoint (0-3) is specified as the second parameter of
  breakpoint_set.

- The breakpoint exception in the kernel is not handled and causes a
  panic; it would be reasonably easy to change this by inspecing DR6,
  printing a message, disabling the breakpoint and continuing. However,
  in my experience even just a panic can be very useful.

- Breakpoints can be set only in the part of the address space that is
  in every page table. It is useful for the kernel, but to use this for
  user processes would require saving and restoring the debug registers
  as part of the context switch. Although the CPU provides support for
  local breakpoints (I implemened this as BREAKPOINT_FLAG_LOCAL) they
  only work if task switching is used.
2010-03-19 19:15:20 +00:00
..
aal Include directory reorg and makefile updates. 2010-03-08 11:04:59 +00:00
advent Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
ash Include directory reorg and makefile updates. 2010-03-08 11:04:59 +00:00
autil Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
awk remove 3 awk files - don't have generated files in svn. 2010-03-18 14:15:48 +00:00
awk.old Let awk.old install its awk as /usr/bin/awk.old. 2010-03-17 16:16:52 +00:00
byacc Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
bzip2-1.0.3 Move man-pages for bzip2, replace with links. 2010-01-06 07:45:45 +00:00
cawf Include directory reorg and makefile updates. 2010-03-08 11:04:59 +00:00
cron Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
de Support for larger disks. 2009-12-21 11:20:30 +00:00
dhcpd New RS and new signal handling for system processes. 2010-03-17 01:15:29 +00:00
dis88 Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
elle Fix some uses of uninitialized variables. 2010-02-19 10:41:02 +00:00
elvis Include directory reorg and makefile updates. 2010-03-08 11:04:59 +00:00
flex-2.5.4 Flex: Fix install(1) invocation in build 2010-03-09 09:43:53 +00:00
ftp101 Initial revision 2006-06-19 14:55:09 +00:00
ftpd200 Install ftpd sh executable. 2005-11-01 22:57:42 +00:00
i386 this patch adds access to the debug breakpoints to 2010-03-19 19:15:20 +00:00
ibm Move archtypes.h, fpu.h, and stackframe.h 2010-03-09 09:41:14 +00:00
indent ast@'s build files for easypack. 2005-09-19 13:15:15 +00:00
m4 Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
make Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
mdb Move archtypes.h, fpu.h, and stackframe.h 2010-03-09 09:41:14 +00:00
mined Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
patch Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
pax Prevent the use of an unitialized variable for block size in CRC calculation. 2010-03-09 16:21:41 +00:00
profile Statistical profiling fixes: 2010-02-03 12:27:52 +00:00
ps Move archtypes.h, fpu.h, and stackframe.h 2010-03-09 09:41:14 +00:00
reboot Include directory reorg and makefile updates. 2010-03-08 11:04:59 +00:00
rlogind Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
scripts New RS and new signal handling for system processes. 2010-03-17 01:15:29 +00:00
sh Include directory reorg and makefile updates. 2010-03-08 11:04:59 +00:00
simple Let the commands/simple/tr.c understand about '\t', '\r', and '\n'. 2010-03-12 09:58:44 +00:00
swifi fix some warning in swifi, make it installable 2010-02-19 16:15:25 +00:00
syslogd Fix syslog buffer overflow (Bug#270, reported by Kevin Jordan) 2009-10-01 16:54:56 +00:00
talk Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
talkd Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
telnet Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
telnetd Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
urlget Include directory reorg and makefile updates. 2010-03-08 11:04:59 +00:00
yap Include directory reorg and makefile updates. 2010-03-08 11:04:59 +00:00
zmodem Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
zoneinfo Move man-pages for zoneinfo, replace with links 2010-01-06 08:00:39 +00:00
Makefile Let awk.old install its awk as /usr/bin/awk.old. 2010-03-17 16:16:52 +00:00