diff options
author | Abdallah Bouassida <abdallah.bouassida@lauterbach.com> | 2018-05-18 17:48:07 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2018-05-18 17:48:07 +0100 |
commit | 200bf5b7ffea635079cc05fdfb363372b9544ce7 (patch) | |
tree | 1b485d5f1d8668ae0cd12da251dfc0fc583e04ef /gdbstub.c | |
parent | 9c513e786d85cc58b8ba56a482566f759e0835b6 (diff) | |
download | qemu-200bf5b7ffea635079cc05fdfb363372b9544ce7.zip qemu-200bf5b7ffea635079cc05fdfb363372b9544ce7.tar.gz qemu-200bf5b7ffea635079cc05fdfb363372b9544ce7.tar.bz2 |
target/arm: Add the XML dynamic generation
Generate an XML description for the cp-regs.
Register these regs with the gdb_register_coprocessor().
Add arm_gdb_get_sysreg() to use it as a callback to read those regs.
Add a dummy arm_gdb_set_sysreg().
Signed-off-by: Abdallah Bouassida <abdallah.bouassida@lauterbach.com>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 1524153386-3550-4-git-send-email-abdallah.bouassida@lauterbach.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'gdbstub.c')
-rw-r--r-- | gdbstub.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -675,6 +675,16 @@ static const char *get_feature_xml(const char *p, const char **newp, } return target_xml; } + if (cc->gdb_get_dynamic_xml) { + CPUState *cpu = first_cpu; + char *xmlname = g_strndup(p, len); + const char *xml = cc->gdb_get_dynamic_xml(cpu, xmlname); + + g_free(xmlname); + if (xml) { + return xml; + } + } for (i = 0; ; i++) { name = xml_builtin[i][0]; if (!name || (strncmp(name, p, len) == 0 && strlen(name) == len)) |