Config.in 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. comment "gdb/gdbserver needs a toolchain w/ threads, threads debug"
  2. depends on !BR2_nios2 && !BR2_bfin
  3. depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_HAS_THREADS_DEBUG
  4. config BR2_PACKAGE_GDB
  5. bool "gdb"
  6. # When the external toolchain gdbserver is copied to the
  7. # target, we don't allow building a separate gdbserver. The
  8. # one from the external toolchain should be used.
  9. select BR2_PACKAGE_GDB_SERVER if \
  10. (!BR2_PACKAGE_GDB_DEBUGGER && !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY)
  11. depends on BR2_TOOLCHAIN_HAS_THREADS && BR2_TOOLCHAIN_HAS_THREADS_DEBUG
  12. depends on !BR2_nios2 && !BR2_bfin
  13. help
  14. GDB, the GNU Project debugger, allows you to see what is
  15. going on `inside' another program while it executes -- or
  16. what another program was doing at the moment it crashed.
  17. This option allows to build gdbserver and/or the gdb
  18. debugger for the target.
  19. For embedded development, the most common solution is to
  20. build only 'gdbserver' for the target, and use a cross-gdb
  21. on the host. See BR2_PACKAGE_HOST_GDB in the Toolchain menu
  22. to enable one. Notice that external toolchains often provide
  23. their own pre-built cross-gdb and gdbserver binaries.
  24. http://www.gnu.org/software/gdb/
  25. if BR2_PACKAGE_GDB
  26. config BR2_PACKAGE_GDB_SERVER
  27. bool "gdbserver"
  28. depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
  29. help
  30. Build the gdbserver stub to run on the target.
  31. A full gdb is needed to debug the progam.
  32. config BR2_PACKAGE_GDB_DEBUGGER
  33. bool "full debugger"
  34. select BR2_PACKAGE_NCURSES
  35. depends on BR2_USE_WCHAR
  36. depends on !BR2_sh && !BR2_sh64 && !BR2_microblaze
  37. comment "full gdb on target needs a toolchain w/ wchar"
  38. depends on !BR2_sh && !BR2_sh64 && !BR2_microblaze
  39. depends on !BR2_USE_WCHAR
  40. if BR2_PACKAGE_GDB_DEBUGGER
  41. config BR2_PACKAGE_GDB_TUI
  42. bool "TUI support"
  43. help
  44. This option enables terminal user interface (TUI) for gdb
  45. "The GDB Text User Interface (TUI) is a terminal interface
  46. which uses the curses library to show the source file, the
  47. assembly output, the program registers and GDB commands in
  48. separate text windows."
  49. https://sourceware.org/gdb/current/onlinedocs/gdb/TUI.html
  50. config BR2_PACKAGE_GDB_PYTHON
  51. bool "Python support"
  52. # Only Python 2.x is supported by gdb for now
  53. depends on BR2_PACKAGE_PYTHON
  54. help
  55. This option enables Python support in the target gdb.
  56. endif
  57. endif