[Buildroot] [PATCH] gdb: actually disable gdbserver if BR2_PACKAGE_GDB_SERVER is unset

Peter Korsgaard peter at korsgaard.com
Mon Jun 11 21:11:50 UTC 2018

>>>>> "Anssi" == Anssi Hannula <anssi.hannula at bitwise.fi> writes:

 > 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

 > Fix that by passing --disable-gdbserver when BR2_PACKAGE_GDB_SERVER is
 > unset.

 > Signed-off-by: Anssi Hannula <anssi.hannula at bitwise.fi>

Committed to 2018.02.x, thanks.

Bye, Peter Korsgaard

More information about the buildroot mailing list