linux/Documentation/DocBook
Jason Wessel a9b60bf4c2 kgdb: fix kgdb_validate_break_address to perform a mem write
A regression to the kgdb core was found in the case of using the
CONFIG_DEBUG_RODATA kernel option.  When this option is on, a breakpoint
cannot be written into any readonly memory page.  When an external
debugger requests a breakpoint to get set, the
kgdb_validate_break_address() was only checking to see if the address
to place the breakpoint was readable and lacked a write check.

This patch changes the validate routine to try reading (via the
breakpoint set request) and also to try immediately writing the break
point.  If either fails, an error is correctly returned and the
debugger behaves correctly.  Then an end user can make the
descision to use hardware breakpoints.

Also update the documentation to reflect that using
CONFIG_DEBUG_RODATA will inhibit the use of software breakpoints.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
2008-08-01 08:39:34 -05:00
..
.gitignore [PATCH] DocBook: add .gitignore file 2006-01-10 08:01:52 -08:00
Makefile debugobjects: add documentation 2008-04-30 08:29:53 -07:00
debugobjects.tmpl debugobjects: add documentation 2008-04-30 08:29:53 -07:00
deviceiobook.tmpl Add recommended section IDs to deviceiobook.tmpl 2007-10-17 08:43:07 -07:00
filesystems.tmpl docbook: move pipe and splice to filesystems docbook 2008-02-13 16:21:19 -08:00
gadget.tmpl usb gadget serial: split out generic serial function 2008-07-21 15:16:07 -07:00
genericirq.tmpl Add missing section IDs to genericirq.tmpl 2008-02-07 08:42:16 -08:00
kernel-api.tmpl docbook: fix bitops fatal filename error 2008-04-28 10:26:51 -07:00
kernel-hacking.tmpl docbook/kernel-hacking: fixup x86 path/file names 2007-10-13 09:52:26 -07:00
kernel-locking.tmpl Remove mention of semaphores from kernel-locking 2008-07-24 08:29:40 -04:00
kgdb.tmpl kgdb: fix kgdb_validate_break_address to perform a mem write 2008-08-01 08:39:34 -05:00
libata.tmpl [SCSI] libsas: fix scr_read/write users and update the libata documentation 2007-07-20 15:52:08 -05:00
librs.tmpl docbook: librs typo fixes 2007-05-08 11:15:15 -07:00
lsm.tmpl Add missing section ID to lsm.tmpl 2008-02-07 08:42:16 -08:00
mac80211.tmpl mac80211: add documentation book 2008-03-06 15:30:47 -05:00
mcabook.tmpl docbook/mcabook: fixup x86 path/file names 2007-10-13 09:52:26 -07:00
mtdnand.tmpl Add section IDs to mtdnand.tmpl 2008-02-07 08:42:16 -08:00
networking.tmpl docbook: make a networking book and fix a few errors 2008-02-13 16:21:19 -08:00
procfs-guide.tmpl procfs-guide: drop pointless &nbsp; entities 2008-07-25 10:53:35 -07:00
procfs_example.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
rapidio.tmpl docbook: fix fatal rapidio yet again (and more to come) 2008-04-29 20:40:00 -07:00
s390-drivers.tmpl [S390] cio: Update documentation. 2008-02-05 16:50:53 +01:00
scsi.tmpl [SCSI] update my email address 2008-02-07 18:02:42 -06:00
stylesheet.xsl [PATCH] DocBook/HTML: Generate chapter/section level TOCs for functions 2007-02-11 10:51:30 -08:00
uio-howto.tmpl uio-howto.tmpl: use unique output names 2008-07-21 21:54:58 -07:00
usb.tmpl USB: remove usb DocBook warnings 2007-05-22 23:45:48 -07:00
videobook.tmpl Add table IDs to videobook.tmpl 2008-02-07 08:42:17 -08:00
wanbook.tmpl Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
writing_usb_driver.tmpl DOC: A couple corrections and clarifications in USB doc. 2008-04-21 22:57:50 +00:00
z8530book.tmpl Add chapter IDs to z8530book.tmpl 2008-02-07 08:42:17 -08:00