Kconfig.kgdb 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. config HAVE_ARCH_KGDB
  2. bool
  3. menuconfig KGDB
  4. bool "KGDB: kernel debugger"
  5. depends on HAVE_ARCH_KGDB
  6. depends on DEBUG_KERNEL && EXPERIMENTAL
  7. help
  8. If you say Y here, it will be possible to remotely debug the
  9. kernel using gdb. It is recommended but not required, that
  10. you also turn on the kernel config option
  11. CONFIG_FRAME_POINTER to aid in producing more reliable stack
  12. backtraces in the external debugger. Documentation of
  13. kernel debugger is available at http://kgdb.sourceforge.net
  14. as well as in DocBook form in Documentation/DocBook/. If
  15. unsure, say N.
  16. if KGDB
  17. config KGDB_SERIAL_CONSOLE
  18. tristate "KGDB: use kgdb over the serial console"
  19. select CONSOLE_POLL
  20. select MAGIC_SYSRQ
  21. default y
  22. help
  23. Share a serial console with kgdb. Sysrq-g must be used
  24. to break in initially.
  25. config KGDB_TESTS
  26. bool "KGDB: internal test suite"
  27. default n
  28. help
  29. This is a kgdb I/O module specifically designed to test
  30. kgdb's internal functions. This kgdb I/O module is
  31. intended to for the development of new kgdb stubs
  32. as well as regression testing the kgdb internals.
  33. See the drivers/misc/kgdbts.c for the details about
  34. the tests. The most basic of this I/O module is to boot
  35. a kernel boot arguments "kgdbwait kgdbts=V1F100"
  36. config KGDB_TESTS_ON_BOOT
  37. bool "KGDB: Run tests on boot"
  38. depends on KGDB_TESTS
  39. default n
  40. help
  41. Run the kgdb tests on boot up automatically without the need
  42. to pass in a kernel parameter
  43. config KGDB_TESTS_BOOT_STRING
  44. string "KGDB: which internal kgdb tests to run"
  45. depends on KGDB_TESTS_ON_BOOT
  46. default "V1F100"
  47. help
  48. This is the command string to send the kgdb test suite on
  49. boot. See the drivers/misc/kgdbts.c for detailed
  50. information about other strings you could use beyond the
  51. default of V1F100.
  52. config KGDB_LOW_LEVEL_TRAP
  53. bool "KGDB: Allow debugging with traps in notifiers"
  54. depends on X86 || MIPS
  55. default n
  56. help
  57. This will add an extra call back to kgdb for the breakpoint
  58. exception handler on which will will allow kgdb to step
  59. through a notify handler.
  60. config KGDB_KDB
  61. bool "KGDB_KDB: include kdb frontend for kgdb"
  62. default n
  63. help
  64. KDB frontend for kernel
  65. config KDB_KEYBOARD
  66. bool "KGDB_KDB: keyboard as input device"
  67. depends on VT && KGDB_KDB
  68. default n
  69. help
  70. KDB can use a PS/2 type keyboard for an input device
  71. config KDB_CONTINUE_CATASTROPHIC
  72. int "KDB: continue after catastrophic errors"
  73. depends on KGDB_KDB
  74. default "0"
  75. help
  76. This integer controls the behaviour of kdb when the kernel gets a
  77. catastrophic error, i.e. for a panic or oops.
  78. When KDB is active and a catastrophic error occurs, nothing extra
  79. will happen until you type 'go'.
  80. CONFIG_KDB_CONTINUE_CATASTROPHIC == 0 (default). The first time
  81. you type 'go', you will be warned by kdb. The secend time you type
  82. 'go', KDB tries to continue. No guarantees that the
  83. kernel is still usable in this situation.
  84. CONFIG_KDB_CONTINUE_CATASTROPHIC == 1. KDB tries to continue.
  85. No guarantees that the kernel is still usable in this situation.
  86. CONFIG_KDB_CONTINUE_CATASTROPHIC == 2. KDB forces a reboot.
  87. If you are not sure, say 0.
  88. endif # KGDB