From ee59fa1dd57bac8ba8c81e02f2710ba08d1aa49d Mon Sep 17 00:00:00 2001 From: Akihiko Odaki Date: Tue, 27 Feb 2024 14:43:17 +0000 Subject: gdbstub: Simplify XML lookup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Alex Bennée Message-Id: <20231213-gdb-v17-7-777047380591@daynix.com> Signed-off-by: Alex Bennée Message-Id: <20240227144335.1196131-12-alex.bennee@linaro.org> --- include/exec/gdbstub.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/exec/gdbstub.h b/include/exec/gdbstub.h index bcaab1b..82a8afa 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) -- cgit v1.1