config BR2_PACKAGE_GDB
bool "gdb"
- select BR2_PACKAGE_GDB_SERVER if !BR2_PACKAGE_GDB_DEBUGGER
+ # When the external toolchain gdbserver is copied to the
+ # target, we don't allow building a separate gdbserver. The
+ # one from the external toolchain should be used.
+ select BR2_PACKAGE_GDB_SERVER if \
+ (!BR2_PACKAGE_GDB_DEBUGGER && !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY)
depends on BR2_TOOLCHAIN_HAS_THREADS && BR2_TOOLCHAIN_HAS_THREADS_DEBUG
help
GDB, the GNU Project debugger, allows you to see what is
config BR2_PACKAGE_GDB_SERVER
bool "gdbserver"
+ depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
help
Build the gdbserver stub to run on the target.
A full gdb is needed to debug the progam.
config BR2_PACKAGE_HOST_GDB
bool "Build cross gdb for the host"
+ # When the external toolchain gdbserver is used, we shouldn't
+ # allow to build a cross-gdb, as the one of the external
+ # toolchain should be used.
+ depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
help
Build a cross gdb that runs on the host machine and debugs
programs running on the target. It requires 'gdbserver'