xref: /linux/lib/Kconfig.kgdb (revision 525c1f9204928649eca475e61bfb21e0b6416dbf)
1dc7d5527SJason Wessel
2e024cbd2SJan Engelhardtconfig HAVE_ARCH_KGDB
3e024cbd2SJan Engelhardt	bool
4e024cbd2SJan Engelhardt
5dc7d5527SJason Wesselmenuconfig KGDB
6dcc78711SJason Wessel	bool "KGDB: kernel debugger"
7dc7d5527SJason Wessel	depends on HAVE_ARCH_KGDB
8*525c1f92SKees Cook	depends on DEBUG_KERNEL
9dc7d5527SJason Wessel	help
10dc7d5527SJason Wessel	  If you say Y here, it will be possible to remotely debug the
115f5ddfb3SJason Wessel	  kernel using gdb.  It is recommended but not required, that
125f5ddfb3SJason Wessel	  you also turn on the kernel config option
135f5ddfb3SJason Wessel	  CONFIG_FRAME_POINTER to aid in producing more reliable stack
145f5ddfb3SJason Wessel	  backtraces in the external debugger.  Documentation of
155f5ddfb3SJason Wessel	  kernel debugger is available at http://kgdb.sourceforge.net
165f5ddfb3SJason Wessel	  as well as in DocBook form in Documentation/DocBook/.  If
175f5ddfb3SJason Wessel	  unsure, say N.
18dc7d5527SJason Wessel
19e024cbd2SJan 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.
59e024cbd2SJan Engelhardt
60f503b5aeSJason Wesselconfig KGDB_LOW_LEVEL_TRAP
61f503b5aeSJason Wessel       bool "KGDB: Allow debugging with traps in notifiers"
625dd11d5dSJason Wessel       depends on X86 || MIPS
63f503b5aeSJason Wessel       default n
64f503b5aeSJason Wessel       help
65f503b5aeSJason Wessel         This will add an extra call back to kgdb for the breakpoint
66f503b5aeSJason Wessel         exception handler on which will will allow kgdb to step
67f503b5aeSJason Wessel         through a notify handler.
68f503b5aeSJason Wessel
69dcc78711SJason Wesselconfig KGDB_KDB
70dcc78711SJason Wessel	bool "KGDB_KDB: include kdb frontend for kgdb"
71dcc78711SJason Wessel	default n
72dcc78711SJason Wessel	help
73dcc78711SJason Wessel	  KDB frontend for kernel
74dcc78711SJason Wessel
75ada64e4cSJason Wesselconfig KDB_KEYBOARD
76ada64e4cSJason Wessel	bool "KGDB_KDB: keyboard as input device"
77ada64e4cSJason Wessel	depends on VT && KGDB_KDB
78ada64e4cSJason Wessel	default n
79ada64e4cSJason Wessel	help
80ada64e4cSJason Wessel	  KDB can use a PS/2 type keyboard for an input device
81ada64e4cSJason Wessel
82e024cbd2SJan Engelhardtendif # KGDB
83