summaryrefslogtreecommitdiff
path: root/toolchain/gdb
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-03-14 23:49:57 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2012-03-15 23:04:39 +0100
commitc56b58b4b71a5fd87d6d3d61e08a627c968acda1 (patch)
treeef52a2f0f6c3162c1538d9c74c1f8e271913ff78 /toolchain/gdb
parentc85f7f4082e480485e8a0f1549615b5b680d96ff (diff)
debug: provide an option to copy the gdbserver to the target
When an external toolchain is used, it is very likely that it contains a pre-built version of a gdbserver that has the same version as the cross-gdb included in the external toolchain. So, we now provide an option that allows to copy this pre-built gdbserver to the target. As the location of the gdbserver in the external toolchain is not standardized, we only support the CodeSourcery and Crosstool-NG layouts for the moment. Other locations can be added later. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'toolchain/gdb')
-rw-r--r--toolchain/gdb/Config.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/toolchain/gdb/Config.in b/toolchain/gdb/Config.in
index 8501983aa..980666b0d 100644
--- a/toolchain/gdb/Config.in
+++ b/toolchain/gdb/Config.in
@@ -14,10 +14,18 @@ comment "Gdb debugger for the target needs WCHAR support in toolchain"
config BR2_PACKAGE_GDB_SERVER
bool "Build gdb server for the Target"
+ depends on !BR2_TOOLCHAIN_EXTERNAL
help
Build the gdbserver stub to run on the target.
A full gdb is needed to debug the progam.
+config BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
+ bool "Copy gdb server to the Target"
+ depends on BR2_TOOLCHAIN_EXTERNAL
+ help
+ Copy the gdbserver provided by the external toolchain to the
+ target.
+
config BR2_PACKAGE_GDB_HOST
bool "Build gdb for the Host"
# cross-gdb is supposed to be part of the external