Config.in 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. comment "gdb needs a glibc or uclibc toolchain"
  7. depends on BR2_or1k
  8. depends on BR2_TOOLCHAIN_USES_MUSL
  9. comment "gdb/gdbserver needs a toolchain w/ threads, threads debug"
  10. depends on BR2_PACKAGE_GDB_ARCH_SUPPORTS
  11. depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_HAS_THREADS_DEBUG
  12. comment "gdb/gdbserver >= 8.x needs a toolchain w/ C++, gcc >= 4.8"
  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
  19. depends on BR2_INSTALL_LIBSTDCPP
  20. # The or1k musl port is incomplete, elf_gregset_t definition is missing:
  21. # https://git.musl-libc.org/cgit/musl/tree/arch/or1k/bits/user.h?h=v1.2.3
  22. depends on !BR2_or1k || !BR2_TOOLCHAIN_USES_MUSL
  23. # When the external toolchain gdbserver is copied to the
  24. # target, we don't allow building a separate gdbserver. The
  25. # one from the external toolchain should be used.
  26. select BR2_PACKAGE_GDB_SERVER if \
  27. (!BR2_PACKAGE_GDB_DEBUGGER && !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY)
  28. help
  29. GDB, the GNU Project debugger, allows you to see what is
  30. going on `inside' another program while it executes -- or
  31. what another program was doing at the moment it crashed.
  32. This option allows to build gdbserver and/or the gdb
  33. debugger for the target.
  34. For embedded development, the most common solution is to
  35. build only 'gdbserver' for the target, and use a cross-gdb
  36. on the host. See BR2_PACKAGE_HOST_GDB in the Toolchain menu
  37. to enable one. Notice that external toolchains often provide
  38. their own pre-built cross-gdb and gdbserver binaries.
  39. http://www.gnu.org/software/gdb/
  40. if BR2_PACKAGE_GDB
  41. config BR2_PACKAGE_GDB_SERVER
  42. bool "gdbserver"
  43. depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
  44. help
  45. Build the gdbserver stub to run on the target.
  46. A full gdb is needed to debug the progam.
  47. config BR2_PACKAGE_GDB_DEBUGGER
  48. bool "full debugger"
  49. depends on BR2_USE_WCHAR
  50. depends on !BR2_sh
  51. select BR2_PACKAGE_GMP
  52. select BR2_PACKAGE_MPFR if (BR2_GDB_VERSION_14 || BR2_arc)
  53. select BR2_PACKAGE_NCURSES
  54. select BR2_PACKAGE_ZLIB
  55. comment "full gdb on target needs a toolchain w/ wchar"
  56. depends on !BR2_sh
  57. depends on !BR2_USE_WCHAR
  58. if BR2_PACKAGE_GDB_DEBUGGER
  59. config BR2_PACKAGE_GDB_TUI
  60. bool "TUI support"
  61. help
  62. This option enables terminal user interface (TUI) for gdb
  63. "The GDB Text User Interface (TUI) is a terminal interface
  64. which uses the curses library to show the source file, the
  65. assembly output, the program registers and GDB commands in
  66. separate text windows."
  67. https://sourceware.org/gdb/current/onlinedocs/gdb/TUI.html
  68. config BR2_PACKAGE_GDB_PYTHON
  69. bool "Python support"
  70. depends on BR2_PACKAGE_PYTHON3
  71. help
  72. This option enables Python support in the target gdb.
  73. endif
  74. endif