[PATCH 0/6] : Remove XML files from gdbserver

Alan Hayward
2018-01-16T09:52:00Z

This set of patches removes the need for gdbserver to ship the xml files
in the binary.

In exisiting code, gdbserver uses C code auto generated from xml files to
create target descriptions. When sending an xml description to GDB, it
creates xml containing mostly just the name of the original xml file.

With this new patch, we add common code that allows gdbserver and gdb
to turn a C target description structure into xml. This allows gdbserver
to send a full xml description.

The first patch starts by commonising all the gdb target-description code,
which is then used by gdbserver in patch two.
Patch four is the meat, which adds the target description to xml parser,
including adding a generic debug(tdesc) function.
The other three patches proceed to remove the no longer required code and
xml files.

Patches have been tested on a make check on x86 targets=all build with
target board unix native-gdbserver. In addition, patch four adds new test
cases to unit test.

Alan.