Config.in 2.7 KB

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