aboutsummaryrefslogtreecommitdiff
path: root/gdbstub/internals.h
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2023-08-29 17:15:27 +0100
committerAlex Bennée <alex.bennee@linaro.org>2023-08-30 14:57:56 +0100
commitd0e5fa849db4d729e0607ef597cb31eac79532a3 (patch)
tree08aaef7569c1a3a2d3d0151399a0464037bf4683 /gdbstub/internals.h
parent56e534bd116afda6f7b9ef96691549373c64040d (diff)
downloadqemu-d0e5fa849db4d729e0607ef597cb31eac79532a3.zip
qemu-d0e5fa849db4d729e0607ef597cb31eac79532a3.tar.gz
qemu-d0e5fa849db4d729e0607ef597cb31eac79532a3.tar.bz2
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>
Diffstat (limited to 'gdbstub/internals.h')
-rw-r--r--gdbstub/internals.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdbstub/internals.h b/gdbstub/internals.h
index 4876ebd..fee2430 100644
--- a/gdbstub/internals.h
+++ b/gdbstub/internals.h
@@ -33,6 +33,7 @@ typedef struct GDBProcess {
uint32_t pid;
bool attached;
+ /* If gdb sends qXfer:features:read:target.xml this will be populated */
char *target_xml;
} GDBProcess;