monitor/hmp: Automatically handle gdb-xml exposed registers
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest11 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | target/sparc: Introduce sparc_cpu_register_gdb_regs() stubtarget/ target/ target/ | +12 | 0 replies | |
| 2/11 | target/sparc: Restore 'gdb-xml/sparc64-cp0.xml'configs/ configs/ gdb-xml/ +3 more | +131 | 0 replies | |
| 3/11 | target/sparc: Restore 'gdb-xml/sparc64-fpu.xml'configs/ configs/ gdb-xml/ +3 more | +120 | 0 replies | |
| 4/11 | target/sparc: Restore 'gdb-xml/sparc64-cpu.xml'configs/ configs/ gdb-xml/ +1 more | +5 | 0 replies | |
| 5/11 | target/sparc: Expose gdbstub registers to sparc32plus targetconfigs/ | +1 | 0 replies | |
| 6/11 | target/sparc: Expose gdbstub registers to sparc32 targetsconfigs/ configs/ gdb-xml/ +4 more | +114 | 0 replies | |
| 7/11 | monitor/hmp: Handle gdb-xml exposed registers via gdb_get_register()monitor/ | +46 | 2 replies | |
| 8/11 | target/sparc: Remove MonitorDef register entries available via gdbstubtarget/ | +0 | 0 replies | |
| 9/11 | target/i386: Remove MonitorDef register entries available via gdbstubtarget/ | +0 | 0 replies | |
| 10/11 | target/m68k: Remove MonitorDef register entries available via gdbstubtarget/ | +0 | 0 replies | |
| 11/11 | target/ppc: Remove MonitorDef register entries available via gdbstubtarget/ | +0 | 1 reply |
Reviews trailers per patch
1 of 11 patches has a Reviewed-by or Acked-by.
| Patch | Dr. David Alan Gilbert |
|---|---|
| 1/11 | |
| 2/11 | |
| 3/11 | |
| 4/11 | |
| 5/11 | |
| 6/11 | |
| 7/11 | R-b |
| 8/11 | |
| 9/11 | |
| 10/11 | |
| 11/11 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/11] monitor/hmp: Automatically handle gdb-xml exposed registers
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%)Signature · 1 line
2.52.0