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