mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
a9b60bf4c2
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> |
||
---|---|---|
.. | ||
.gitignore | ||
debugobjects.tmpl | ||
deviceiobook.tmpl | ||
filesystems.tmpl | ||
gadget.tmpl | ||
genericirq.tmpl | ||
kernel-api.tmpl | ||
kernel-hacking.tmpl | ||
kernel-locking.tmpl | ||
kgdb.tmpl | ||
libata.tmpl | ||
librs.tmpl | ||
lsm.tmpl | ||
mac80211.tmpl | ||
Makefile | ||
mcabook.tmpl | ||
mtdnand.tmpl | ||
networking.tmpl | ||
procfs-guide.tmpl | ||
procfs_example.c | ||
rapidio.tmpl | ||
s390-drivers.tmpl | ||
scsi.tmpl | ||
stylesheet.xsl | ||
uio-howto.tmpl | ||
usb.tmpl | ||
videobook.tmpl | ||
wanbook.tmpl | ||
writing_usb_driver.tmpl | ||
z8530book.tmpl |