Jason Wessel | dc7d552 | 2008-04-17 20:05:37 +0200 | [diff] [blame] | 1 | |
Jan Engelhardt | e024cbd | 2008-04-25 18:35:29 +0200 | [diff] [blame] | 2 | config HAVE_ARCH_KGDB |
| 3 | bool |
| 4 | |
Jason Wessel | dc7d552 | 2008-04-17 20:05:37 +0200 | [diff] [blame] | 5 | menuconfig KGDB |
| 6 | bool "KGDB: kernel debugging with remote gdb" |
| 7 | select FRAME_POINTER |
| 8 | depends on HAVE_ARCH_KGDB |
| 9 | depends on DEBUG_KERNEL && EXPERIMENTAL |
| 10 | help |
| 11 | If you say Y here, it will be possible to remotely debug the |
| 12 | kernel using gdb. Documentation of kernel debugger is available |
| 13 | at http://kgdb.sourceforge.net as well as in DocBook form |
| 14 | in Documentation/DocBook/. If unsure, say N. |
| 15 | |
Jan Engelhardt | e024cbd | 2008-04-25 18:35:29 +0200 | [diff] [blame] | 16 | if KGDB |
Jason Wessel | dc7d552 | 2008-04-17 20:05:37 +0200 | [diff] [blame] | 17 | |
| 18 | config KGDB_SERIAL_CONSOLE |
| 19 | tristate "KGDB: use kgdb over the serial console" |
Jason Wessel | dc7d552 | 2008-04-17 20:05:37 +0200 | [diff] [blame] | 20 | select CONSOLE_POLL |
| 21 | select MAGIC_SYSRQ |
| 22 | default y |
| 23 | help |
| 24 | Share a serial console with kgdb. Sysrq-g must be used |
| 25 | to break in initially. |
Jason Wessel | e8d31c2 | 2008-03-07 16:34:17 -0600 | [diff] [blame] | 26 | |
| 27 | config KGDB_TESTS |
| 28 | bool "KGDB: internal test suite" |
Jason Wessel | e8d31c2 | 2008-03-07 16:34:17 -0600 | [diff] [blame] | 29 | default n |
| 30 | help |
| 31 | This is a kgdb I/O module specifically designed to test |
| 32 | kgdb's internal functions. This kgdb I/O module is |
| 33 | intended to for the development of new kgdb stubs |
| 34 | as well as regression testing the kgdb internals. |
| 35 | See the drivers/misc/kgdbts.c for the details about |
| 36 | the tests. The most basic of this I/O module is to boot |
| 37 | a kernel boot arguments "kgdbwait kgdbts=V1F100" |
Jason Wessel | 974460c | 2008-03-20 13:43:44 -0500 | [diff] [blame] | 38 | |
| 39 | config KGDB_TESTS_ON_BOOT |
| 40 | bool "KGDB: Run tests on boot" |
| 41 | depends on KGDB_TESTS |
| 42 | default n |
| 43 | help |
| 44 | Run the kgdb tests on boot up automatically without the need |
| 45 | to pass in a kernel parameter |
| 46 | |
| 47 | config KGDB_TESTS_BOOT_STRING |
| 48 | string "KGDB: which internal kgdb tests to run" |
| 49 | depends on KGDB_TESTS_ON_BOOT |
| 50 | default "V1F100" |
| 51 | help |
| 52 | This is the command string to send the kgdb test suite on |
| 53 | boot. See the drivers/misc/kgdbts.c for detailed |
| 54 | information about other strings you could use beyond the |
| 55 | default of V1F100. |
Jan Engelhardt | e024cbd | 2008-04-25 18:35:29 +0200 | [diff] [blame] | 56 | |
| 57 | endif # KGDB |