diff options
| author | Andreas Färber | 2013-06-29 04:18:45 +0200 |
|---|---|---|
| committer | Andreas Färber | 2013-07-27 00:04:17 +0200 |
| commit | 5b50e790f9e9403d11b4164193b76530ee85a2a1 (patch) | |
| tree | 63244f49c1b53b05d1d8ddc795643e376dd55971 /include/exec | |
| parent | gdbstub: Replace GET_REG*() macros with gdb_get_reg*() functions (diff) | |
| download | qemu-5b50e790f9e9403d11b4164193b76530ee85a2a1.tar.gz qemu-5b50e790f9e9403d11b4164193b76530ee85a2a1.tar.xz qemu-5b50e790f9e9403d11b4164193b76530ee85a2a1.zip | |
cpu: Introduce CPUClass::gdb_{read,write}_register()
Completes migration of target-specific code to new target-*/gdbstub.c.
Acked-by: Michael Walle <michael@walle.cc> (for lm32)
Acked-by: Max Filippov <jcmvbkbc@gmail.com> (for xtensa)
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include/exec')
| -rw-r--r-- | include/exec/gdbstub.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/exec/gdbstub.h b/include/exec/gdbstub.h index a5bd341d55..a608a26c30 100644 --- a/include/exec/gdbstub.h +++ b/include/exec/gdbstub.h @@ -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]; |
