]> git.proxmox.com Git - qemu.git/commit
gdbstub: Replace GET_REG*() macros with gdb_get_reg*() functions
authorAndreas Färber <afaerber@suse.de>
Sun, 7 Jul 2013 11:05:05 +0000 (13:05 +0200)
committerAndreas Färber <afaerber@suse.de>
Fri, 26 Jul 2013 22:04:17 +0000 (00:04 +0200)
commit986a2998932e978e63fc3b7ead1fef81f7aad52e
tree93d84a9f6c46c1bd4a9d98d9c9463ed276ca4260
parent25d8ac0e31c3c68dfdd6da7c33b87870b4a3b623
gdbstub: Replace GET_REG*() macros with gdb_get_reg*() functions

This avoids polluting the global namespace with a non-prefixed macro and
makes it obvious in the call sites that we return.

Semi-automatic conversion using, e.g.,
 sed -i 's/GET_REGL(/return gdb_get_regl(mem_buf, /g' target-*/gdbstub.c
followed by manual tweaking for sparc's GET_REGA() and Coding Style.

Acked-by: Michael Walle <michael@walle.cc> (for lm32)
Acked-by: Max Filippov <jcmvbkbc@gmail.com> (for xtensa)
Signed-off-by: Andreas Färber <afaerber@suse.de>
16 files changed:
gdbstub.c
include/exec/gdbstub.h
target-alpha/gdbstub.c
target-arm/gdbstub.c
target-cris/gdbstub.c
target-i386/gdbstub.c
target-lm32/gdbstub.c
target-m68k/gdbstub.c
target-microblaze/gdbstub.c
target-mips/gdbstub.c
target-openrisc/gdbstub.c
target-ppc/gdbstub.c
target-s390x/gdbstub.c
target-sh4/gdbstub.c
target-sparc/gdbstub.c
target-xtensa/gdbstub.c