diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2013-04-07 00:04:34 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2013-04-11 21:46:56 +0200 |
commit | f6d02465068eed452c5a1c3ca453eb8641ab034a (patch) | |
tree | 8f45fdd91febb1075b9a8f76ad2e6c8a96fac88e /package/gdb/Config.in.host | |
parent | a0b6faaab4dcb7e372fe16ffb335e39b9e06a8fb (diff) | |
download | buildroot-novena-f6d02465068eed452c5a1c3ca453eb8641ab034a.tar.gz buildroot-novena-f6d02465068eed452c5a1c3ca453eb8641ab034a.zip |
gdb: do not allow gdbserver/cross-gdb build in some cases
When an external toolchain is used, and the user has chosen to copy
the external toolchain gdbserver to the target, then we should allow
the user to build a gdbserver and/or a cross-gdb: the ones of the
external toolchain should be used.
The reasoning is that one must use a gdbserver and cross-gdb of
identical versions to be sure that debugging will work properly.
Change suggested by Yann E. Morin.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/gdb/Config.in.host')
-rw-r--r-- | package/gdb/Config.in.host | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/package/gdb/Config.in.host b/package/gdb/Config.in.host index 223c4268c..1e092635a 100644 --- a/package/gdb/Config.in.host +++ b/package/gdb/Config.in.host @@ -1,5 +1,9 @@ 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' |