diff options
author | Akihiko Odaki <akihiko.odaki@daynix.com> | 2024-02-27 14:43:17 +0000 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2024-02-28 09:09:55 +0000 |
commit | ee59fa1dd57bac8ba8c81e02f2710ba08d1aa49d (patch) | |
tree | a7587e20ee6589a1cb0e1e3e0f670f725e81431c /include/exec/gdbstub.h | |
parent | 66260159a72ecd6c384197ba3d6e6f660ca5b482 (diff) |
gdbstub: Simplify XML lookup
Now we know all instances of GDBFeature that is used in CPU so we can
traverse them to find XML. This removes the need for a CPU-specific
lookup function for dynamic XMLs.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20231213-gdb-v17-7-777047380591@daynix.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240227144335.1196131-12-alex.bennee@linaro.org>
Diffstat (limited to 'include/exec/gdbstub.h')
-rw-r--r-- | include/exec/gdbstub.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/exec/gdbstub.h b/include/exec/gdbstub.h index bcaab1bc75..82a8afa237 100644 --- a/include/exec/gdbstub.h +++ b/include/exec/gdbstub.h @@ -28,6 +28,12 @@ typedef int (*gdb_get_reg_cb)(CPUState *cpu, GByteArray *buf, int reg); typedef int (*gdb_set_reg_cb)(CPUState *cpu, uint8_t *buf, int reg); /** + * gdb_init_cpu(): Initialize the CPU for gdbstub. + * @cpu: The CPU to be initialized. + */ +void gdb_init_cpu(CPUState *cpu); + +/** * gdb_register_coprocessor() - register a supplemental set of registers * @cpu - the CPU associated with registers * @get_reg - get function (gdb reading) |