On 3/10/26 2:59 PM, Philippe Mathieu-Daudé wrote:
When a feature XML file provides a "regnum=" tag to indicate
the registers base index, respect it, as it might not be the
same as our current number of registered entries, in particular
when there are gaps.

This fixes a bug with the "power-fpu.xml" file [*] which was
loaded at index 70 while the base register is 71. This latent
bug was exposed by commit 1ec0fbe2dda ("target/ppc: Fix
CPUClass::gdb_num_core_regs value").

[*] 
https://lore.kernel.org/qemu-devel/[email protected]/

Reported-by: Florian Hofhammer <[email protected]>
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
  gdbstub/gdbstub.c    | 6 ++++++
  gdbstub/trace-events | 1 +
  2 files changed, 7 insertions(+)


Reviewed-by: Pierrick Bouvier <[email protected]>

Reply via email to