blob: 2cfd2721f7ed17f0e1e199082616c861bdd3c63e [file] [log] [blame]
Jason Wesseldc7d5522008-04-17 20:05:37 +02001
Jan Engelhardte024cbd2008-04-25 18:35:29 +02002config HAVE_ARCH_KGDB
3 bool
4
Jason Wesseldc7d5522008-04-17 20:05:37 +02005menuconfig 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 Engelhardte024cbd2008-04-25 18:35:29 +020016if KGDB
Jason Wesseldc7d5522008-04-17 20:05:37 +020017
18config KGDB_SERIAL_CONSOLE
19 tristate "KGDB: use kgdb over the serial console"
Jason Wesseldc7d5522008-04-17 20:05:37 +020020 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 Wessele8d31c22008-03-07 16:34:17 -060026
27config KGDB_TESTS
28 bool "KGDB: internal test suite"
Jason Wessele8d31c22008-03-07 16:34:17 -060029 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 Wessel974460c2008-03-20 13:43:44 -050038
39config 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
47config 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 Engelhardte024cbd2008-04-25 18:35:29 +020056
57endif # KGDB