You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/gdb-xml
TaiseiIto 75ac231c67 gdb-xml: Fix size of EFER register on i386 architecture when debugged by GDB
Before this commit, there were contradictory descriptions about size of EFER
register.
Line 113 says the size is 8 bytes.
Line 129 says the size is 4 bytes.

As a result, when GDB is debugging an OS running on QEMU, the GDB cannot
read 'g' packets correctly. This 'g' packet transmits values of each
registers of machine emulated by QEMU to GDB. QEMU, the packet sender,
assign 4 bytes for EFER in 'g' packet based on the line 113.
GDB, the packet receiver, extract 8 bytes for EFER in 'g' packet based on
the line 129. Therefore, all registers located behind EFER in 'g' packet
has been shifted 4 bytes in GDB.

After this commit, GDB can read 'g' packets correctly.

Signed-off-by: TaiseiIto <taisei1212@outlook.jp>
Message-Id: <TY0PR0101MB4285F637209075C9F65FCDA6A4479@TY0PR0101MB4285.apcprd01.prod.exchangelabs.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2 years ago
..
aarch64-core.xml target-arm: Add AArch64 gdbstub support 11 years ago
aarch64-fpu.xml target-arm: Support fp registers in gdb stub 11 years ago
arm-core.xml
arm-m-profile-mve.xml target/arm: Advertise MVE to gdb when present 3 years ago
arm-m-profile.xml target/arm: Use correct GDB XML for M-profile cores 5 years ago
arm-neon.xml target/arm: Don't put FPEXC and FPSID in org.gnu.gdb.arm.vfp XML 3 years ago
arm-vfp-sysregs.xml target/arm: Don't put FPEXC and FPSID in org.gnu.gdb.arm.vfp XML 3 years ago
arm-vfp.xml target/arm: Don't put FPEXC and FPSID in org.gnu.gdb.arm.vfp XML 3 years ago
arm-vfp3.xml target/arm: Don't put FPEXC and FPSID in org.gnu.gdb.arm.vfp XML 3 years ago
avr-cpu.xml target/avr: CPU class: Add GDB support 4 years ago
cf-core.xml
cf-fp.xml
i386-32bit.xml gdb-xml: Fix size of EFER register on i386 architecture when debugged by GDB 2 years ago
i386-64bit.xml gdbstub: Fix i386/x86_64 machine description and add control registers 6 years ago
loongarch-base64.xml target/loongarch: update loongarch-base64.xml 2 years ago
loongarch-fpu.xml target/loongarch: Update loongarch-fpu.xml 2 years ago
m68k-core.xml target/m68k: fix gdb for m68xxx 5 years ago
m68k-fp.xml target-m68k: define 96bit FP registers for gdb on 680x0 8 years ago
power-altivec.xml
power-core.xml gdb-xml: fix hacks in powerpc register numbering 16 years ago
power-fpu.xml gdb-xml: fix hacks in powerpc register numbering 16 years ago
power-spe.xml gdb-xml: fix hacks in powerpc register numbering 16 years ago
power-vsx.xml target-ppc: gdbstub: Add VSX support 9 years ago
power64-core.xml gdb-xml: fix hacks in powerpc register numbering 16 years ago
riscv-32bit-cpu.xml target/riscv: remove fixed numbering from GDB xml feature files 2 years ago
riscv-32bit-fpu.xml target/riscv: remove fixed numbering from GDB xml feature files 2 years ago
riscv-32bit-virtual.xml target/riscv: Expose "priv" register for GDB for reads 5 years ago
riscv-64bit-cpu.xml target/riscv: remove fixed numbering from GDB xml feature files 2 years ago
riscv-64bit-fpu.xml target/riscv: remove fixed numbering from GDB xml feature files 2 years ago
riscv-64bit-virtual.xml target/riscv: Expose "priv" register for GDB for reads 5 years ago
rx-core.xml target/rx: CPU definitions 5 years ago
s390-acr.xml s390x/gdb: add the feature xml files for s390x 10 years ago
s390-cr.xml s390x/gdb: support reading/writing of control registers 9 years ago
s390-fpr.xml s390x/gdb: add the feature xml files for s390x 10 years ago
s390-gs.xml s390x/gdb: add gs registers 7 years ago
s390-virt.xml s390x/gdb: expose virtualization specific registers 9 years ago
s390-vx.xml gdb-xml: Include XML for s390 vector registers 10 years ago
s390x-core64.xml s390x/gdb: add the feature xml files for s390x 10 years ago