]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
kgdbts: Use HW breakpoints with CONFIG_DEBUG_RODATA
authorJason Wessel <jason.wessel@windriver.com>
Wed, 28 May 2008 17:49:57 +0000 (12:49 -0500)
committerJason Wessel <jason.wessel@windriver.com>
Wed, 28 May 2008 17:49:57 +0000 (12:49 -0500)
commitb33cb815b565a94c654a0fe8e62e36f5b4053888
treecf0c5213903420338e71c44fc14322d34cc1c488
parent827e609b4581282b98bdf7666f6e93ff1bd1a63e
kgdbts: Use HW breakpoints with CONFIG_DEBUG_RODATA

Whenever CONFIG_DEBUG_RODATA is set in the kernel config many kernel
text sections become read-only, and the use of software breakpoints in
the kgdb tests will cause the kernel to fail to complete the start up.

Until such time that there is an official API for modifying read-only
text sections hardware breakpoints must be used to run the do_fork or
sys_open tests or the tests get skipped.

Also fix the duplicated include reported by:
Huang Weiyi <weiyi.huang@gmail.com>

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
drivers/misc/kgdbts.c