]> git.baikalelectronics.ru Git - kernel.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)
commit432bff69431bbd4c5fa496334efff2768f26bea7
treecf0c5213903420338e71c44fc14322d34cc1c488
parent1b80a21520e530d6b05d7a8022839ec9f143a494
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