Config.in.host 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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_15
  38. depends on !BR2_arc
  39. help
  40. Select the version of gdb you wish to use.
  41. config BR2_GDB_VERSION_14
  42. bool "gdb 14.x"
  43. config BR2_GDB_VERSION_15
  44. bool "gdb 15.x"
  45. depends on BR2_HOST_GCC_AT_LEAST_9 && BR2_TOOLCHAIN_GCC_AT_LEAST_9
  46. config BR2_GDB_VERSION_16
  47. bool "gdb 16.x"
  48. depends on BR2_HOST_GCC_AT_LEAST_9 && BR2_TOOLCHAIN_GCC_AT_LEAST_9
  49. comment "gdb 15.x/16.x need host and target gcc >= 9"
  50. depends on !BR2_HOST_GCC_AT_LEAST_9 || \
  51. !BR2_TOOLCHAIN_GCC_AT_LEAST_9
  52. endchoice
  53. endif
  54. # If cross-gdb is not enabled, the latest stable version is chosen.
  55. config BR2_GDB_VERSION
  56. string
  57. default "arc-2023.09-release" if BR2_arc
  58. default "14.2" if BR2_GDB_VERSION_14 || (!BR2_PACKAGE_HOST_GDB && !BR2_TOOLCHAIN_GCC_AT_LEAST_9)
  59. default "15.1" if BR2_GDB_VERSION_15 || (!BR2_PACKAGE_HOST_GDB && BR2_TOOLCHAIN_GCC_AT_LEAST_9)
  60. default "16.1" if BR2_GDB_VERSION_16
  61. depends on BR2_PACKAGE_GDB || BR2_PACKAGE_HOST_GDB