All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/11] monitor/hmp: Automatically handle gdb-xml exposed registers
@ 2026-02-16 22:52 Philippe Mathieu-Daudé
  2026-02-16 22:52 ` [PATCH 01/11] target/sparc: Introduce sparc_cpu_register_gdb_regs() stub Philippe Mathieu-Daudé
                   ` (10 more replies)
  0 siblings, 11 replies; 15+ messages in thread
From: Philippe Mathieu-Daudé @ 2026-02-16 22:52 UTC (permalink / raw)
  To: qemu-devel
  Cc: Laurent Vivier, Dr. David Alan Gilbert, Nicholas Piggin,
	Chinmay Rath, Alex Bennée, Zhao Liu, Mark Cave-Ayland,
	Pierrick Bouvier, Artyom Tarasenko, Akihiko Odaki, Gustavo Romero,
	Paolo Bonzini, unisono, Philippe Mathieu-Daudé, qemu-ppc

MonitorDef registers parsing is one of the oldest APIs in QEMU,
thus predates gdbstub and XML register files. The latters are
maintained by the GDB/binutils project and are more up-to-date.
Getting the target register list from them allows to expose
all accessible registers to the HMP commands.

This series adds gdb_get_register() to monitor to use XML
generated registers, and remove the legacy MonitorDef entries
which became unreachable.

First we need to have the SPARC target better follow the
gdb-xml API.

Philippe Mathieu-Daudé (11):
  target/sparc: Introduce sparc_cpu_register_gdb_regs() stub
  target/sparc: Restore 'gdb-xml/sparc64-cp0.xml'
  target/sparc: Restore 'gdb-xml/sparc64-fpu.xml'
  target/sparc: Restore 'gdb-xml/sparc64-cpu.xml'
  target/sparc: Expose gdbstub registers to sparc32plus target
  target/sparc: Expose gdbstub registers to sparc32 targets
  monitor/hmp: Handle gdb-xml exposed registers via  gdb_get_register()
  target/sparc: Remove MonitorDef register entries available via gdbstub
  target/i386: Remove MonitorDef register entries available via gdbstub
  target/m68k: Remove MonitorDef register entries available via gdbstub
  target/ppc: Remove MonitorDef register entries available via gdbstub

 configs/targets/sparc-linux-user.mak          |   1 +
 configs/targets/sparc-softmmu.mak             |   1 +
 configs/targets/sparc32plus-linux-user.mak    |   1 +
 configs/targets/sparc64-linux-user.mak        |   2 +-
 configs/targets/sparc64-softmmu.mak           |   2 +-
 target/sparc/cpu.h                            |   1 +
 monitor/hmp.c                                 |  49 ++-
 target/i386/monitor.c                         |  35 ---
 target/m68k/monitor.c                         |  18 --
 target/ppc/ppc-qmp-cmds.c                     |   5 -
 target/sparc/cpu.c                            |   9 +-
 target/sparc/gdbstub.c                        | 295 +++++++++++-------
 target/sparc/monitor.c                        | 107 -------
 gdb-xml/sparc32-cp0.xml                       |  18 ++
 gdb-xml/sparc32-cpu.xml                       |  42 +++
 gdb-xml/sparc32-fpu.xml                       |  42 +++
 gdb-xml/sparc64-cp0.xml                       |  16 +
 gdb-xml/sparc64-cpu.xml                       |  42 +++
 gdb-xml/{sparc64-core.xml => sparc64-fpu.xml} |  44 +--
 19 files changed, 403 insertions(+), 327 deletions(-)
 create mode 100644 gdb-xml/sparc32-cp0.xml
 create mode 100644 gdb-xml/sparc32-cpu.xml
 create mode 100644 gdb-xml/sparc32-fpu.xml
 create mode 100644 gdb-xml/sparc64-cp0.xml
 create mode 100644 gdb-xml/sparc64-cpu.xml
 rename gdb-xml/{sparc64-core.xml => sparc64-fpu.xml} (59%)

-- 
2.52.0



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2026-02-18 13:55 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-16 22:52 [PATCH 00/11] monitor/hmp: Automatically handle gdb-xml exposed registers Philippe Mathieu-Daudé
2026-02-16 22:52 ` [PATCH 01/11] target/sparc: Introduce sparc_cpu_register_gdb_regs() stub Philippe Mathieu-Daudé
2026-02-16 22:52 ` [PATCH 02/11] target/sparc: Restore 'gdb-xml/sparc64-cp0.xml' Philippe Mathieu-Daudé
2026-02-16 22:52 ` [PATCH 03/11] target/sparc: Restore 'gdb-xml/sparc64-fpu.xml' Philippe Mathieu-Daudé
2026-02-16 22:52 ` [PATCH 04/11] target/sparc: Restore 'gdb-xml/sparc64-cpu.xml' Philippe Mathieu-Daudé
2026-02-16 22:52 ` [PATCH 05/11] target/sparc: Expose gdbstub registers to sparc32plus target Philippe Mathieu-Daudé
2026-02-16 22:52 ` [PATCH 06/11] target/sparc: Expose gdbstub registers to sparc32 targets Philippe Mathieu-Daudé
2026-02-16 22:52 ` [PATCH 07/11] monitor/hmp: Handle gdb-xml exposed registers via gdb_get_register() Philippe Mathieu-Daudé
2026-02-17  6:51   ` Philippe Mathieu-Daudé
2026-02-18 13:54   ` Dr. David Alan Gilbert
2026-02-16 22:52 ` [PATCH 08/11] target/sparc: Remove MonitorDef register entries available via gdbstub Philippe Mathieu-Daudé
2026-02-16 22:52 ` [PATCH 09/11] target/i386: " Philippe Mathieu-Daudé
2026-02-16 22:52 ` [PATCH 10/11] target/m68k: " Philippe Mathieu-Daudé
2026-02-16 22:52 ` [PATCH 11/11] target/ppc: " Philippe Mathieu-Daudé
2026-02-16 23:10   ` BALATON Zoltan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.