Re: [PATCH] Move gdbserver to top level

Tom Tromey
2020-02-17T18:46:12Z

>>>>> ">" == Aktemur, Tankut Baris <tankut.baris.aktemur@intel.com> writes:

>> It used to be possible to build gdbserver by directly using its configure.
>> E.g.: path/to/gdbserver/configure, as shown here:
>> https://sourceware.org/gdb/wiki/BuildingCrossGDBandGDBserver

>> Is this not a use-case anymore?

It is still possible to build just gdbserver, but the approach is
different now. The documentation was updated as part of this switch.

The new approach is to configure as usual, possibly disabling gdb as
well, and then use "make all-gdbserver". I do it like:

../binutils-gdb/configure --disable-{binutils,gas,gold,gprof,ld,gdb}
make all-gdbserver

Plain "make" can also be used, but some unnecessary libraries will still
be built -- that's why we recommend all-gdbserver. It might be good to
also disable these libraries if no "deliverable" depends on them, but as
that's a top-level change, it requires some more thought.

Tom