Try and make the self reported global hack a little less hackish by
providing a query function instead. As gdb_has_xml was always set if
we negotiated XML we can now use the presence of ->target_xml as the
test instead.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
gdbstub/internals.h | 1 +
include/exec/gdbstub.h | 10 +++++-----
gdbstub/gdbstub.c | 12 +++++++-----
gdbstub/softmmu.c | 1 -
gdbstub/user.c | 1 -
target/arm/gdbstub.c | 8 ++++----
target/ppc/gdbstub.c | 4 ++--
7 files changed, 19 insertions(+), 18 deletions(-)