xref: /openbmc/linux/lib/Kconfig.kgdb (revision 93dc544c)
1
2config HAVE_ARCH_KGDB
3	bool
4
5menuconfig 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
16if KGDB
17
18config KGDB_SERIAL_CONSOLE
19	tristate "KGDB: use kgdb over the serial console"
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.
26
27config KGDB_TESTS
28	bool "KGDB: internal test suite"
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"
38
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.
56
57endif # KGDB
58