Config.in 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. depends on !BR2_nds32
  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. # no gdbserver on riscv
  21. select BR2_PACKAGE_GDB_DEBUGGER if BR2_riscv
  22. # When the external toolchain gdbserver is copied to the
  23. # target, we don't allow building a separate gdbserver. The
  24. # one from the external toolchain should be used.
  25. select BR2_PACKAGE_GDB_SERVER if \
  26. (!BR2_PACKAGE_GDB_DEBUGGER && !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY)
  27. help
  28. GDB, the GNU Project debugger, allows you to see what is
  29. going on 'inside' another program while it executes -- or
  30. what another program was doing at the moment it crashed.
  31. This option allows to build gdbserver and/or the gdb
  32. debugger for the target.
  33. For embedded development, the most common solution is to
  34. build only 'gdbserver' for the target, and use a cross-gdb
  35. on the host. See BR2_PACKAGE_HOST_GDB in the Toolchain menu
  36. to enable one. Notice that external toolchains often provide
  37. their own pre-built cross-gdb and gdbserver binaries.
  38. http://www.gnu.org/software/gdb/
  39. if BR2_PACKAGE_GDB
  40. if !BR2_PACKAGE_HOST_GDB
  41. choice
  42. prompt "GDB Package debugger Version"
  43. default BR2_PACKAGE_GDB_VERSION_8_3
  44. depends on !BR2_arc
  45. depends on !BR2_csky
  46. help
  47. Select the version of gdb you wish to use.
  48. config BR2_PACKAGE_GDB_VERSION_8_2
  49. bool "gdb 8.2.x"
  50. config BR2_PACKAGE_GDB_VERSION_8_3
  51. bool "gdb 8.3.x"
  52. config BR2_PACKAGE_GDB_VERSION_9_2
  53. bool "gdb 9.2.x"
  54. endchoice
  55. endif
  56. config BR2_PACKAGE_GDB_SERVER
  57. bool "gdbserver"
  58. depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
  59. depends on !BR2_riscv
  60. help
  61. Build the gdbserver stub to run on the target.
  62. A full gdb is needed to debug the progam.
  63. config BR2_PACKAGE_GDB_DEBUGGER
  64. bool "full debugger"
  65. depends on BR2_USE_WCHAR
  66. depends on !BR2_sh
  67. depends on !BR2_csky
  68. select BR2_PACKAGE_NCURSES
  69. comment "full gdb on target needs a toolchain w/ wchar"
  70. depends on !BR2_sh
  71. depends on !BR2_USE_WCHAR
  72. if BR2_PACKAGE_GDB_DEBUGGER
  73. config BR2_PACKAGE_GDB_TUI
  74. bool "TUI support"
  75. help
  76. This option enables terminal user interface (TUI) for gdb
  77. "The GDB Text User Interface (TUI) is a terminal interface
  78. which uses the curses library to show the source file, the
  79. assembly output, the program registers and GDB commands in
  80. separate text windows."
  81. https://sourceware.org/gdb/current/onlinedocs/gdb/TUI.html
  82. config BR2_PACKAGE_GDB_PYTHON
  83. bool "Python support"
  84. # Only Python 2.x is supported by gdb for now
  85. depends on BR2_PACKAGE_PYTHON
  86. help
  87. This option enables Python support in the target gdb.
  88. endif
  89. endif