diff options
Diffstat (limited to 'arch/sh/Kconfig.debug')
-rw-r--r-- | arch/sh/Kconfig.debug | 104 |
1 files changed, 23 insertions, 81 deletions
diff --git a/arch/sh/Kconfig.debug b/arch/sh/Kconfig.debug index e6d2c8b11abd..0d62681f72a0 100644 --- a/arch/sh/Kconfig.debug +++ b/arch/sh/Kconfig.debug | |||
@@ -98,18 +98,29 @@ config IRQSTACKS | |||
98 | for handling hard and soft interrupts. This can help avoid | 98 | for handling hard and soft interrupts. This can help avoid |
99 | overflowing the process kernel stacks. | 99 | overflowing the process kernel stacks. |
100 | 100 | ||
101 | config SH_KGDB | 101 | config DUMP_CODE |
102 | bool "Include KGDB kernel debugger" | 102 | bool "Show disassembly of nearby code in register dumps" |
103 | select FRAME_POINTER | 103 | depends on DEBUG_KERNEL && SUPERH32 |
104 | select DEBUG_INFO | 104 | default y if DEBUG_BUGVERBOSE |
105 | depends on CPU_SH3 || CPU_SH4 | 105 | default n |
106 | help | ||
107 | This prints out a code trace of the instructions leading up to | ||
108 | the faulting instruction as a debugging aid. As this does grow | ||
109 | the kernel in size a bit, most users will want to say N here. | ||
110 | |||
111 | Those looking for more verbose debugging output should say Y. | ||
112 | |||
113 | config SH_NO_BSS_INIT | ||
114 | bool "Avoid zeroing BSS (to speed-up startup on suitable platforms)" | ||
115 | depends on DEBUG_KERNEL | ||
116 | default n | ||
106 | help | 117 | help |
107 | Include in-kernel hooks for kgdb, the Linux kernel source level | 118 | If running in painfully slow environments, such as an RTL |
108 | debugger. See <http://kgdb.sourceforge.net/> for more information. | 119 | simulation or from remote memory via SHdebug, where the memory |
109 | Unless you are intending to debug the kernel, say N here. | 120 | can already be gauranteed to ber zeroed on boot, say Y. |
110 | 121 | ||
111 | menu "KGDB configuration options" | 122 | For all other cases, say N. If this option seems perplexing, or |
112 | depends on SH_KGDB | 123 | you aren't sure, say N. |
113 | 124 | ||
114 | config MORE_COMPILE_OPTIONS | 125 | config MORE_COMPILE_OPTIONS |
115 | bool "Add any additional compile options" | 126 | bool "Add any additional compile options" |
@@ -122,85 +133,16 @@ config COMPILE_OPTIONS | |||
122 | string "Additional compile arguments" | 133 | string "Additional compile arguments" |
123 | depends on MORE_COMPILE_OPTIONS | 134 | depends on MORE_COMPILE_OPTIONS |
124 | 135 | ||
125 | config KGDB_NMI | ||
126 | def_bool n | ||
127 | prompt "Enter KGDB on NMI" | ||
128 | |||
129 | config SH_KGDB_CONSOLE | ||
130 | def_bool n | ||
131 | prompt "Console messages through GDB" | ||
132 | depends on !SERIAL_SH_SCI_CONSOLE && SERIAL_SH_SCI=y | ||
133 | select SERIAL_CORE_CONSOLE | ||
134 | |||
135 | config KGDB_SYSRQ | ||
136 | def_bool y | ||
137 | prompt "Allow SysRq 'G' to enter KGDB" | ||
138 | depends on MAGIC_SYSRQ | ||
139 | |||
140 | comment "Serial port setup" | ||
141 | |||
142 | config KGDB_DEFPORT | ||
143 | int "Port number (ttySCn)" | ||
144 | default "1" | ||
145 | |||
146 | config KGDB_DEFBAUD | ||
147 | int "Baud rate" | ||
148 | default "115200" | ||
149 | |||
150 | choice | ||
151 | prompt "Parity" | ||
152 | depends on SH_KGDB | ||
153 | default KGDB_DEFPARITY_N | ||
154 | |||
155 | config KGDB_DEFPARITY_N | ||
156 | bool "None" | ||
157 | |||
158 | config KGDB_DEFPARITY_E | ||
159 | bool "Even" | ||
160 | |||
161 | config KGDB_DEFPARITY_O | ||
162 | bool "Odd" | ||
163 | |||
164 | endchoice | ||
165 | |||
166 | choice | ||
167 | prompt "Data bits" | ||
168 | depends on SH_KGDB | ||
169 | default KGDB_DEFBITS_8 | ||
170 | |||
171 | config KGDB_DEFBITS_8 | ||
172 | bool "8" | ||
173 | |||
174 | config KGDB_DEFBITS_7 | ||
175 | bool "7" | ||
176 | |||
177 | endchoice | ||
178 | |||
179 | endmenu | ||
180 | |||
181 | if SUPERH64 | ||
182 | |||
183 | config SH64_PROC_ASIDS | ||
184 | bool "Debug: report ASIDs through /proc/asids" | ||
185 | depends on PROC_FS && MMU | ||
186 | |||
187 | config SH64_SR_WATCH | 136 | config SH64_SR_WATCH |
188 | bool "Debug: set SR.WATCH to enable hardware watchpoints and trace" | 137 | bool "Debug: set SR.WATCH to enable hardware watchpoints and trace" |
138 | depends on SUPERH64 | ||
189 | 139 | ||
190 | config POOR_MANS_STRACE | 140 | config POOR_MANS_STRACE |
191 | bool "Debug: enable rudimentary strace facility" | 141 | bool "Debug: enable rudimentary strace facility" |
142 | depends on SUPERH64 | ||
192 | help | 143 | help |
193 | This option allows system calls to be traced to the console. It also | 144 | This option allows system calls to be traced to the console. It also |
194 | aids in detecting kernel stack underflow. It is useful for debugging | 145 | aids in detecting kernel stack underflow. It is useful for debugging |
195 | early-userland problems (e.g. init incurring fatal exceptions.) | 146 | early-userland problems (e.g. init incurring fatal exceptions.) |
196 | 147 | ||
197 | config SH_ALPHANUMERIC | ||
198 | bool "Enable debug outputs to on-board alphanumeric display" | ||
199 | depends on SH_CAYMAN | ||
200 | |||
201 | config SH_NO_BSS_INIT | ||
202 | bool "Avoid zeroing BSS (to speed-up startup on suitable platforms)" | ||
203 | |||
204 | endif | ||
205 | |||
206 | endmenu | 148 | endmenu |