summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnssi Hannula <anssi.hannula@bitwise.fi>2018-05-15 16:34:42 +0300
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-05-19 14:07:10 +0200
commit9c7ce893a01b3f1fa81ce41580465a472431064c (patch)
tree2d6f2eb248746467b0f052097f6f310fecc89dbf
parent0d7757110a18addce7f4885f6c509f9a275215cb (diff)
downloadbuildroot-9c7ce893a01b3f1fa81ce41580465a472431064c.tar.gz
buildroot-9c7ce893a01b3f1fa81ce41580465a472431064c.zip
gdb: actually disable gdbserver if BR2_PACKAGE_GDB_SERVER is unset
The gdb configure script is given --enable-gdbserver when BR2_PACKAGE_GDB_SERVER is set, but it is not given --disable-gdbserver when BR2_PACKAGE_GDB_SERVER is unset. gdb gdb/configure.ac defaults to enabling gdbserver in "native" (host=target) cases, which is always the case when buildroot builds a gdb which runs on the target hardware. The gdbserver will overwrite BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY gdbserver, if any. Fix that by passing --disable-gdbserver when BR2_PACKAGE_GDB_SERVER is unset. Signed-off-by: Anssi Hannula <anssi.hannula@bitwise.fi> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/gdb/gdb.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/gdb/gdb.mk b/package/gdb/gdb.mk
index 215f473cc0..5661b4a465 100644
--- a/package/gdb/gdb.mk
+++ b/package/gdb/gdb.mk
@@ -109,7 +109,7 @@ GDB_CONF_OPTS = \
--without-x \
--disable-sim \
$(GDB_DISABLE_BINUTILS_CONF_OPTS) \
- $(if $(BR2_PACKAGE_GDB_SERVER),--enable-gdbserver) \
+ $(if $(BR2_PACKAGE_GDB_SERVER),--enable-gdbserver,--disable-gdbserver) \
--with-curses \
--without-included-gettext \
--disable-werror \
OpenPOWER on IntegriCloud