Commit d5adc896 authored by Paul Mackerras's avatar Paul Mackerras Committed by Tom Rini

PPC32: Add some extra kernel debugging options.

parent e96d7b3d
...@@ -585,23 +585,31 @@ source lib/Config.in ...@@ -585,23 +585,31 @@ source lib/Config.in
mainmenu_option next_comment mainmenu_option next_comment
comment 'Kernel hacking' comment 'Kernel hacking'
bool 'Magic SysRq key' CONFIG_MAGIC_SYSRQ bool 'Kernel debugging' CONFIG_DEBUG_KERNEL
bool 'Spinlock debugging' CONFIG_DEBUG_SPINLOCK if [ "$CONFIG_DEBUG_KERNEL" = "y" ]; then
bool 'Include kgdb kernel debugger' CONFIG_KGDB bool ' Debug memory allocations' CONFIG_DEBUG_SLAB
if [ "$CONFIG_KGDB" = "y" ]; then bool ' Magic SysRq key' CONFIG_MAGIC_SYSRQ
choice 'Serial Port' \ bool ' Spinlock debugging' CONFIG_DEBUG_SPINLOCK
"ttyS0 CONFIG_KGDB_TTYS0 \ if [ "$CONFIG_HIGHMEM" = "y" ]; then
ttyS1 CONFIG_KGDB_TTYS1 \ bool ' Highmem debugging' CONFIG_DEBUG_HIGHMEM
ttyS2 CONFIG_KGDB_TTYS2 \ fi
ttyS3 CONFIG_KGDB_TTYS3" ttyS1 bool ' Load all symbols for debugging/kksymoops' CONFIG_KALLSYMS
fi bool ' Include kgdb kernel debugger' CONFIG_KGDB
bool 'Include xmon kernel debugger' CONFIG_XMON if [ "$CONFIG_KGDB" = "y" ]; then
bool 'Include BDI-2000 user context switcher' CONFIG_BDI_SWITCH choice ' Serial Port' \
if [ "$CONFIG_KGDB" = "y" -o "$CONFIG_XMON" = "y" \ "ttyS0 CONFIG_KGDB_TTYS0 \
-o "$CONFIG_BDI_SWITCH" = "y" ]; then ttyS1 CONFIG_KGDB_TTYS1 \
bool 'Add any additional compile options' CONFIG_MORE_COMPILE_OPTIONS ttyS2 CONFIG_KGDB_TTYS2 \
if [ "$CONFIG_MORE_COMPILE_OPTIONS" = "y" ]; then ttyS3 CONFIG_KGDB_TTYS3" ttyS1
string 'Additional compile arguments' CONFIG_COMPILE_OPTIONS "-g -ggdb" fi
bool ' Include xmon kernel debugger' CONFIG_XMON
bool ' Include BDI-2000 user context switcher' CONFIG_BDI_SWITCH
if [ "$CONFIG_KGDB" = "y" -o "$CONFIG_XMON" = "y" \
-o "$CONFIG_BDI_SWITCH" = "y" ]; then
bool ' Add any additional compile options' CONFIG_MORE_COMPILE_OPTIONS
if [ "$CONFIG_MORE_COMPILE_OPTIONS" = "y" ]; then
string ' Additional compile arguments' CONFIG_COMPILE_OPTIONS "-g -ggdb"
fi
fi fi
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment