]> git.ipfire.org Git - thirdparty/qemu.git/commit
gdbstub: Allow gdb_core_xml_file to be set at runtime
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 17 Mar 2025 14:28:12 +0000 (14:28 +0000)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 25 Apr 2025 15:00:41 +0000 (17:00 +0200)
commita1f728ecc90cf6c6db24df53cc951713fca8b94d
tree32fe7bb57d291030bcdd6559fb91cb008eddad82
parent56a9f0d4c4a483ce217e5290db69cb1788586787
gdbstub: Allow gdb_core_xml_file to be set at runtime

Currently the CPUClass:gdb_core_xml_file setting is a simple 'const
char *' which the CPU class must set to a fixed string.  Allow the
CPU class to instead set a new method gdb_get_core_xml_file() which
returns this string.

This will allow Arm CPUs to use different XML files for AArch32 vs
AArch64 without having to have an extra AArch64-specific class type
purely to give somewhere to set cc->gdb_core_xml_file differently.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Acked-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20250317142819.900029-3-peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
gdbstub/gdbstub.c
include/hw/core/cpu.h