xref: /linux/lib/Kconfig.kgdb (revision e024cbd257efc2788b7d21b9353e966267485c87)
1dc7d5527SJason Wessel
2*e024cbd2SJan Engelhardtconfig HAVE_ARCH_KGDB_SHADOW_INFO
3*e024cbd2SJan Engelhardt	bool
4*e024cbd2SJan Engelhardt
5*e024cbd2SJan Engelhardtconfig HAVE_ARCH_KGDB
6*e024cbd2SJan Engelhardt	bool
7*e024cbd2SJan Engelhardt
8dc7d5527SJason Wesselmenuconfig KGDB
9dc7d5527SJason Wessel	bool "KGDB: kernel debugging with remote gdb"
10dc7d5527SJason Wessel	select FRAME_POINTER
11dc7d5527SJason Wessel	depends on HAVE_ARCH_KGDB
12dc7d5527SJason Wessel	depends on DEBUG_KERNEL && EXPERIMENTAL
13dc7d5527SJason Wessel	help
14dc7d5527SJason Wessel	  If you say Y here, it will be possible to remotely debug the
15dc7d5527SJason Wessel	  kernel using gdb.  Documentation of kernel debugger is available
16dc7d5527SJason Wessel	  at http://kgdb.sourceforge.net as well as in DocBook form
17dc7d5527SJason Wessel	  in Documentation/DocBook/.  If unsure, say N.
18dc7d5527SJason Wessel
19*e024cbd2SJan Engelhardtif KGDB
20dc7d5527SJason Wessel
21dc7d5527SJason Wesselconfig KGDB_SERIAL_CONSOLE
22dc7d5527SJason Wessel	tristate "KGDB: use kgdb over the serial console"
23dc7d5527SJason Wessel	select CONSOLE_POLL
24dc7d5527SJason Wessel	select MAGIC_SYSRQ
25dc7d5527SJason Wessel	default y
26dc7d5527SJason Wessel	help
27dc7d5527SJason Wessel	  Share a serial console with kgdb. Sysrq-g must be used
28dc7d5527SJason Wessel	  to break in initially.
29e8d31c20SJason Wessel
30e8d31c20SJason Wesselconfig KGDB_TESTS
31e8d31c20SJason Wessel	bool "KGDB: internal test suite"
32e8d31c20SJason Wessel	default n
33e8d31c20SJason Wessel	help
34e8d31c20SJason Wessel	  This is a kgdb I/O module specifically designed to test
35e8d31c20SJason Wessel	  kgdb's internal functions.  This kgdb I/O module is
36e8d31c20SJason Wessel	  intended to for the development of new kgdb stubs
37e8d31c20SJason Wessel	  as well as regression testing the kgdb internals.
38e8d31c20SJason Wessel	  See the drivers/misc/kgdbts.c for the details about
39e8d31c20SJason Wessel	  the tests.  The most basic of this I/O module is to boot
40e8d31c20SJason Wessel	  a kernel boot arguments "kgdbwait kgdbts=V1F100"
41974460c5SJason Wessel
42974460c5SJason Wesselconfig KGDB_TESTS_ON_BOOT
43974460c5SJason Wessel	bool "KGDB: Run tests on boot"
44974460c5SJason Wessel	depends on KGDB_TESTS
45974460c5SJason Wessel	default n
46974460c5SJason Wessel	help
47974460c5SJason Wessel	  Run the kgdb tests on boot up automatically without the need
48974460c5SJason Wessel	  to pass in a kernel parameter
49974460c5SJason Wessel
50974460c5SJason Wesselconfig KGDB_TESTS_BOOT_STRING
51974460c5SJason Wessel	string "KGDB: which internal kgdb tests to run"
52974460c5SJason Wessel	depends on KGDB_TESTS_ON_BOOT
53974460c5SJason Wessel	default "V1F100"
54974460c5SJason Wessel	help
55974460c5SJason Wessel	  This is the command string to send the kgdb test suite on
56974460c5SJason Wessel	  boot.  See the drivers/misc/kgdbts.c for detailed
57974460c5SJason Wessel	  information about other strings you could use beyond the
58974460c5SJason Wessel	  default of V1F100.
59*e024cbd2SJan Engelhardt
60*e024cbd2SJan Engelhardtendif # KGDB
61