gdbstub: replace global gdb_has_xml with a function
commitd0e5fa849db4d729e0607ef597cb31eac79532a3
authorAlex Bennée <alex.bennee@linaro.org>
Tue, 29 Aug 2023 16:15:27 +0000 (29 17:15 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 30 Aug 2023 13:57:56 +0000 (30 14:57 +0100)
tree08aaef7569c1a3a2d3d0151399a0464037bf4683
parent56e534bd116afda6f7b9ef96691549373c64040d
gdbstub: replace global gdb_has_xml with a function

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.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20230829161528.2707696-12-alex.bennee@linaro.org>
gdbstub/gdbstub.c
gdbstub/internals.h
gdbstub/softmmu.c
gdbstub/user.c
include/exec/gdbstub.h
target/arm/gdbstub.c
target/ppc/gdbstub.c