]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/exec/gdbstub.h
cpu: Introduce CPUClass::gdb_{read,write}_register()
[mirror_qemu.git] / include / exec / gdbstub.h
index a5bd341d55a4f7d9c8202ec136a520c428559e5a..a608a26c30e29fa57409cfe4bd6856c4f4a5145a 100644 (file)
@@ -84,6 +84,14 @@ int gdbserver_start(int);
 int gdbserver_start(const char *port);
 #endif
 
+/**
+ * gdb_has_xml:
+ * This is an ugly hack to cope with both new and old gdb.
+ * If gdb sends qXfer:features:read then assume we're talking to a newish
+ * gdb that understands target descriptions.
+ */
+extern bool gdb_has_xml;
+
 /* in gdbstub-xml.c, generated by scripts/feature_to_c.sh */
 extern const char *const xml_builtin[][2];