Kconfig.debug 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. menu "Kernel hacking"
  2. source "lib/Kconfig.debug"
  3. config DEBUG_STACKOVERFLOW
  4. bool "Check for stack overflows"
  5. depends on DEBUG_KERNEL
  6. config GDBSTUB
  7. bool "Remote GDB kernel debugging"
  8. depends on DEBUG_KERNEL
  9. select DEBUG_INFO
  10. select FRAME_POINTER
  11. help
  12. If you say Y here, it will be possible to remotely debug the kernel
  13. using gdb. This enlarges your kernel ELF image disk size by several
  14. megabytes and requires a machine with more than 16 MB, better 32 MB
  15. RAM to avoid excessive linking time. This is only useful for kernel
  16. hackers. If unsure, say N.
  17. choice
  18. prompt "GDB stub port"
  19. default GDBSTUB_UART1
  20. depends on GDBSTUB
  21. help
  22. Select the on-CPU port used for GDB-stub
  23. config GDBSTUB_UART0
  24. bool "/dev/ttyS0"
  25. config GDBSTUB_UART1
  26. bool "/dev/ttyS1"
  27. endchoice
  28. config GDBSTUB_IMMEDIATE
  29. bool "Break into GDB stub immediately"
  30. depends on GDBSTUB
  31. help
  32. If you say Y here, GDB stub will break into the program as soon as
  33. possible, leaving the program counter at the beginning of
  34. start_kernel() in init/main.c.
  35. config GDB_CONSOLE
  36. bool "Console output to GDB"
  37. depends on GDBSTUB
  38. help
  39. If you are using GDB for remote debugging over a serial port and
  40. would like kernel messages to be formatted into GDB $O packets so
  41. that GDB prints them as program output, say 'Y'.
  42. endmenu