1
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
debugobjects.tmpl debugobjects: add documentation 2008-04-30 08:29:53 -07:00
deviceiobook.tmpl
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
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
librs.tmpl
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
Makefile debugobjects: add documentation 2008-04-30 08:29:53 -07:00
mcabook.tmpl
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_example.c
procfs-guide.tmpl procfs-guide: drop pointless &nbsp; entities 2008-07-25 10:53:35 -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
uio-howto.tmpl uio-howto.tmpl: use unique output names 2008-07-21 21:54:58 -07:00
usb.tmpl
videobook.tmpl Add table IDs to videobook.tmpl 2008-02-07 08:42:17 -08:00
wanbook.tmpl
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