]> git.ipfire.org Git - thirdparty/qemu.git/commit
gdbstub: extend GByteArray to read register helpers
authorAlex Bennée <alex.bennee@linaro.org>
Mon, 16 Mar 2020 17:21:41 +0000 (17:21 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 17 Mar 2020 17:38:38 +0000 (17:38 +0000)
commita010bdbe719c52c8959ca058000d7ac7d559abb8
tree97cdc27c71b191e391962e10fc8b602076b388b0
parentb7b8756a9cd0cd63488a9d9fc9aee5400574c30b
gdbstub: extend GByteArray to read register helpers

Instead of passing a pointer to memory now just extend the GByteArray
to all the read register helpers. They can then safely append their
data through the normal way. We don't bother with this abstraction for
write registers as we have already ensured the buffer being copied
from is the correct size.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Damien Hedde <damien.hedde@greensocs.com>
Message-Id: <20200316172155.971-15-alex.bennee@linaro.org>
41 files changed:
gdbstub.c
hw/core/cpu.c
include/exec/gdbstub.h
include/hw/core/cpu.h
target/alpha/cpu.h
target/alpha/gdbstub.c
target/arm/cpu.h
target/arm/gdbstub.c
target/arm/gdbstub64.c
target/arm/helper.c
target/cris/cpu.h
target/cris/gdbstub.c
target/hppa/cpu.h
target/hppa/gdbstub.c
target/i386/cpu.h
target/i386/gdbstub.c
target/lm32/cpu.h
target/lm32/gdbstub.c
target/m68k/cpu.h
target/m68k/gdbstub.c
target/m68k/helper.c
target/microblaze/cpu.h
target/microblaze/gdbstub.c
target/mips/gdbstub.c
target/mips/internal.h
target/nios2/cpu.c
target/openrisc/cpu.h
target/openrisc/gdbstub.c
target/ppc/cpu.h
target/ppc/gdbstub.c
target/ppc/translate_init.inc.c
target/riscv/cpu.h
target/riscv/gdbstub.c
target/s390x/gdbstub.c
target/s390x/internal.h
target/sh4/cpu.h
target/sh4/gdbstub.c
target/sparc/cpu.h
target/sparc/gdbstub.c
target/xtensa/cpu.h
target/xtensa/gdbstub.c