Config.in.host 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. config BR2_PACKAGE_HOST_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 "Host GDB Options"
  7. depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
  8. depends on BR2_PACKAGE_HOST_GDB_ARCH_SUPPORTS
  9. config BR2_PACKAGE_HOST_GDB
  10. bool "Build cross gdb for the host"
  11. # When the external toolchain gdbserver is used, we shouldn't
  12. # allow to build a cross-gdb, as the one of the external
  13. # toolchain should be used.
  14. depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
  15. depends on BR2_PACKAGE_HOST_GDB_ARCH_SUPPORTS
  16. help
  17. Build a cross gdb that runs on the host machine and debugs
  18. programs running on the target. It requires 'gdbserver'
  19. installed on the target, see BR2_PACKAGE_GDB_SERVER to
  20. enable it.
  21. if BR2_PACKAGE_HOST_GDB
  22. config BR2_PACKAGE_HOST_GDB_TUI
  23. bool "TUI support"
  24. help
  25. This option enables terminal user interface (TUI) for gdb
  26. config BR2_PACKAGE_HOST_GDB_PYTHON3
  27. bool "Python support"
  28. help
  29. This option enables the Python 3 support in the cross gdb.
  30. config BR2_PACKAGE_HOST_GDB_SIM
  31. bool "Simulator support"
  32. depends on !BR2_arc
  33. help
  34. This option enables the simulator support in the cross gdb.
  35. choice
  36. prompt "GDB debugger Version"
  37. default BR2_GDB_VERSION_14
  38. depends on !BR2_arc
  39. help
  40. Select the version of gdb you wish to use.
  41. config BR2_GDB_VERSION_12
  42. bool "gdb 12.x"
  43. config BR2_GDB_VERSION_13
  44. bool "gdb 13.x"
  45. config BR2_GDB_VERSION_14
  46. bool "gdb 14.x"
  47. config BR2_GDB_VERSION_15
  48. bool "gdb 15.x"
  49. depends on BR2_HOST_GCC_AT_LEAST_9 && BR2_TOOLCHAIN_GCC_AT_LEAST_9
  50. comment "gdb 15.x needs host and target gcc >= 9"
  51. depends on !BR2_HOST_GCC_AT_LEAST_9 || \
  52. !BR2_TOOLCHAIN_GCC_AT_LEAST_9
  53. endchoice
  54. endif
  55. # If cross-gdb is not enabled, the latest stable version is chosen.
  56. config BR2_GDB_VERSION
  57. string
  58. default "arc-2023.09-release" if BR2_arc
  59. default "12.1" if BR2_GDB_VERSION_12
  60. default "13.2" if BR2_GDB_VERSION_13
  61. default "14.2" if BR2_GDB_VERSION_14 || !BR2_PACKAGE_HOST_GDB
  62. default "15.1" if BR2_GDB_VERSION_15
  63. depends on BR2_PACKAGE_GDB || BR2_PACKAGE_HOST_GDB