summaryrefslogtreecommitdiffstats
path: root/package/gdb/Config.in
diff options
context:
space:
mode:
Diffstat (limited to 'package/gdb/Config.in')
-rw-r--r--package/gdb/Config.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/package/gdb/Config.in b/package/gdb/Config.in
index 6eb29d5bd..38f4564eb 100644
--- a/package/gdb/Config.in
+++ b/package/gdb/Config.in
@@ -3,7 +3,11 @@ comment "gdb/gdbserver require a toolchain with thread and thread debug support"
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
@@ -25,6 +29,7 @@ if BR2_PACKAGE_GDB
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.