lkml.org 
[lkml]   [2013]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Subjectkdb: kgdb: CONFIG_DEBUG_RODATA setting?
From
From [1]:

"If the architecture that you are using supports the kernel option
CONFIG_DEBUG_RODATA, you should consider turning it off. This option
will prevent the use of software breakpoints because it marks certain
regions of the kernel's memory space as read-only. If kgdb supports it
for the architecture you are using, you can use hardware breakpoints
if you desire to run with the CONFIG_DEBUG_RODATA option turned on,
else you need to turn off this option."

"Here is an example set of .config symbols to enable or disable for kgdb:

# CONFIG_DEBUG_RODATA is not set

CONFIG_FRAME_POINTER=y

CONFIG_KGDB=y

CONFIG_KGDB_SERIAL_CONSOLE=y
".

I am here on x86-64 and CONFIG_DEBUG_RODATA is always "=y" in
Linux-Next due to...


[ arch/x86/Kconfig.debug ]

config DEBUG_RODATA
bool "Write protect kernel read-only data structures"
default y
depends on DEBUG_KERNEL


So, is this setting now obsolete (means [1] not up2date?).
( See also my patch. )

Kind Regards,
- Sedat -

[1] https://www.kernel.org/pub/linux/kernel/people/jwessel/kdb/CompilingAKernel.html#CompileKGDB
[unhandled content-type:application/octet-stream][unhandled content-type:application/octet-stream]
\
 
 \ /
  Last update: 2013-04-09 15:21    [W:0.036 / U:0.896 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site