diff options
author | Jason Wessel <jason.wessel@windriver.com> | 2008-07-23 12:30:15 -0400 |
---|---|---|
committer | Jason Wessel <jason.wessel@windriver.com> | 2008-07-23 12:30:15 -0400 |
commit | 17ce452f7ea3df760b7f9f42453b6f6acd765217 (patch) | |
tree | a53c70b553363ce404ff49cb49ccc532cf4c7e78 /arch/powerpc/Kconfig.debug | |
parent | 5cbad0ebf45c5417104b383dc0e34f64fa7f2473 (diff) |
kgdb, powerpc: arch specific powerpc kgdb support
This patch removes the old kgdb reminants from ARCH=powerpc and
implements the new style arch specific stub for the common kgdb core
interface.
It is possible to have xmon and kgdb in the same kernel, but you
cannot use both at the same time because there is only one set of
debug hooks.
The arch specific kgdb implementation saves the previous state of the
debug hooks and restores them if you unconfigure the kgdb I/O driver.
Kgdb should have no impact on a kernel that has no kgdb I/O driver
configured.
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Diffstat (limited to 'arch/powerpc/Kconfig.debug')
-rw-r--r-- | arch/powerpc/Kconfig.debug | 50 |
1 files changed, 6 insertions, 44 deletions
diff --git a/arch/powerpc/Kconfig.debug b/arch/powerpc/Kconfig.debug index 2840ab69ef4e..8c8aadbe9563 100644 --- a/arch/powerpc/Kconfig.debug +++ b/arch/powerpc/Kconfig.debug | |||
@@ -41,22 +41,6 @@ config HCALL_STATS | |||
41 | This option will add a small amount of overhead to all hypervisor | 41 | This option will add a small amount of overhead to all hypervisor |
42 | calls. | 42 | calls. |
43 | 43 | ||
44 | config DEBUGGER | ||
45 | bool "Enable debugger hooks" | ||
46 | depends on DEBUG_KERNEL | ||
47 | help | ||
48 | Include in-kernel hooks for kernel debuggers. Unless you are | ||
49 | intending to debug the kernel, say N here. | ||
50 | |||
51 | config KGDB | ||
52 | bool "Include kgdb kernel debugger" | ||
53 | depends on DEBUGGER && (BROKEN || PPC_GEN550 || 4xx) | ||
54 | select DEBUG_INFO | ||
55 | help | ||
56 | Include in-kernel hooks for kgdb, the Linux kernel source level | ||
57 | debugger. See <http://kgdb.sourceforge.net/> for more information. | ||
58 | Unless you are intending to debug the kernel, say N here. | ||
59 | |||
60 | config CODE_PATCHING_SELFTEST | 44 | config CODE_PATCHING_SELFTEST |
61 | bool "Run self-tests of the code-patching code." | 45 | bool "Run self-tests of the code-patching code." |
62 | depends on DEBUG_KERNEL | 46 | depends on DEBUG_KERNEL |
@@ -67,36 +51,9 @@ config FTR_FIXUP_SELFTEST | |||
67 | depends on DEBUG_KERNEL | 51 | depends on DEBUG_KERNEL |
68 | default n | 52 | default n |
69 | 53 | ||
70 | choice | ||
71 | prompt "Serial Port" | ||
72 | depends on KGDB | ||
73 | default KGDB_TTYS1 | ||
74 | |||
75 | config KGDB_TTYS0 | ||
76 | bool "ttyS0" | ||
77 | |||
78 | config KGDB_TTYS1 | ||
79 | bool "ttyS1" | ||
80 | |||
81 | config KGDB_TTYS2 | ||
82 | bool "ttyS2" | ||
83 | |||
84 | config KGDB_TTYS3 | ||
85 | bool "ttyS3" | ||
86 | |||
87 | endchoice | ||
88 | |||
89 | config KGDB_CONSOLE | ||
90 | bool "Enable serial console thru kgdb port" | ||
91 | depends on KGDB && 8xx || CPM2 | ||
92 | help | ||
93 | If you enable this, all serial console messages will be sent | ||
94 | over the gdb stub. | ||
95 | If unsure, say N. | ||
96 | |||
97 | config XMON | 54 | config XMON |
98 | bool "Include xmon kernel debugger" | 55 | bool "Include xmon kernel debugger" |
99 | depends on DEBUGGER | 56 | depends on DEBUG_KERNEL |
100 | help | 57 | help |
101 | Include in-kernel hooks for the xmon kernel monitor/debugger. | 58 | Include in-kernel hooks for the xmon kernel monitor/debugger. |
102 | Unless you are intending to debug the kernel, say N here. | 59 | Unless you are intending to debug the kernel, say N here. |
@@ -126,6 +83,11 @@ config XMON_DISASSEMBLY | |||
126 | to say Y here, unless you're building for a memory-constrained | 83 | to say Y here, unless you're building for a memory-constrained |
127 | system. | 84 | system. |
128 | 85 | ||
86 | config DEBUGGER | ||
87 | bool | ||
88 | depends on KGDB || XMON | ||
89 | default y | ||
90 | |||
129 | config IRQSTACKS | 91 | config IRQSTACKS |
130 | bool "Use separate kernel stacks when processing interrupts" | 92 | bool "Use separate kernel stacks when processing interrupts" |
131 | help | 93 | help |