Skip to content

gdbstub: add support for switchable endianness

Changbin Du qemu-arm qemu-devel qemu-riscv 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3gdbstub: add basic infrastructure to support switchable endiannessgdbstub.c include/exec/gdbstub.h qemu-options.hx +1 more+119 -210 replies
2/3arm: gdbstub: add support for switchable endiannessconfigs/targets/aarch64-softmmu.mak configs/targets/arm-softmmu.mak target/arm/gdbstub.c +1 more+4 -20 replies
3/3riscv: gdbstub: add support for switchable endiannessconfigs/targets/riscv32-softmmu.mak configs/targets/riscv64-softmmu.mak target/riscv/gdbstub.c+8 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] gdbstub: add support for switchable endianness

To resolve the issue to debug switchable targets, this serias introduces basic infrastructure for gdbstub and enable support for ARM and RISC-V targets.

For example, now there is no problem to debug an big-enadian aarch64 target on x86 host.

  $ qemu-system-aarch64 -gdb tcp::1234,endianness=big ...

Changbin Du (3):
gdbstub: add basic infrastructure to support switchable endianness
arm: gdbstub: add support for switchable endianness
riscv: gdbstub: add support for switchable endianness

 configs/targets/aarch64-softmmu.mak |  1 +
 configs/targets/arm-softmmu.mak     |  1 +
 configs/targets/riscv32-softmmu.mak |  1 +
 configs/targets/riscv64-softmmu.mak |  1 +
 gdbstub.c                           | 11 +++++
 include/exec/gdbstub.h              | 72 +++++++++++++++++++++--------
 qemu-options.hx                     |  7 ++-
 softmmu/vl.c                        | 50 +++++++++++++++++++-
 target/arm/gdbstub.c                |  2 +-
 target/arm/gdbstub64.c              |  2 +-
 target/riscv/gdbstub.c              | 12 ++---
 11 files changed, 131 insertions(+), 29 deletions(-)
Signature · 1 line
2.32.0