strace/linux/hppa/arch_regs.c

3 lines
66 B
C
Raw Normal View History

upeek, upoke: change argument types from long to unsigned long * defs.h (upeek, upoke): Change offset argument type from long to unsigned long. Change res argument type from long to kernel_ureg_t. * upeek.c (upeek): Likewise. * upoke.c (upoke.c): Likewise. * syscall.c (print_pc) [ARCH_PC_PEEK_ADDR]: Change pc type from long to kernel_ureg_t. * linux/aarch64/arch_regs.c (arm_sp_ptr): Remove redundant cast. * linux/metag/get_syscall_args.c (get_syscall_args): Likewise. * linux/sh/get_syscall_result.c (get_syscall_result_regs): Likewise. * linux/sh64/get_syscall_result.c (get_syscall_result_regs): Likewise. * linux/powerpc/getregs_old.c (getregs_old): Remove redundant casts. * linux/alpha/arch_getrval2.c (getrval2): Change r20 type from long to unsigned long. * linux/alpha/arch_regs.c (alpha_r0, alpha_a3): Change type from long to unsigned long. * linux/bfin/arch_regs.c (bfin_r0): Likewise. * linux/crisv10/arch_regs.c (cris_r10): Likewise. * linux/hppa/arch_regs.c (hppa_r28): Likewise. * linux/ia64/arch_regs.c (IA64_PSR_IS): Likewise. * linux/microblaze/arch_regs.c (microblaze_r3): Likewise. * linux/sh/arch_regs.c (sh_r0): Likewise. * linux/sh64/arch_regs.c (sh64_r9): Likewise. * linux/xtensa/arch_regs.c (xtensa_a2): Likewise. * linux/alpha/arch_sigreturn.c (arch_sigreturn): Change addr type from long to unsigned long. * linux/microblaze/arch_sigreturn.c (arch_sigreturn): Likewise. * linux/alpha/get_scno.c (arch_get_scno): Update for the change of signedness. * linux/arc/get_syscall_args.c (get_syscall_args): Change arc_args type from pointer to long to pointer to unsigned long. * linux/arm/arch_regs.c (arm_sp_ptr): Change type from pointer to long to pointer to unsigned long. * linux/arm/arch_regs.h (arm_sp_ptr): Likewise. * linux/i386/arch_regs.c (i386_esp_ptr): Likewise. * linux/i386/arch_regs.h (i386_esp_ptr): Likewise. * linux/m68k/arch_regs.c (m68k_usp_ptr): Likewise. * linux/m68k/arch_regs.h (m68k_usp_ptr): Likewise. * linux/ia64/get_syscall_args.c (get_syscall_args): Use umove instead of umoven. * linux/sh/arch_getrval2.c (getrval2): Change val type from long to unsigned long.
2016-12-25 12:53:14 +00:00
static unsigned long hppa_r28;
Cleanup print_pc Apparently, there are only two types of instruction pointer printers depending on the architecture: those that print a register that was fetched earlier, and those that fetch a register themselves using upeek. With this change, architectures of the first type have ARCH_PC_REG defined in their arch_regs.c file, architectures of the first type have ARCH_PC_PEEK_ADDR defined there, and the common code in syscall.c uses these macros to print the instruction pointer. * Makefile.am (EXTRA_DIST): Remove linux/*/print_pc.c. * linux/*/print_pc.c: Remove. * linux/aarch64/arch_regs.c(ARCH_PC_REG): Define macro. * linux/arc/arch_regs.c(ARCH_PC_REG): Likewise. * linux/arm/arch_regs.c(ARCH_PC_REG): Likewise. * linux/avr32/arch_regs.c(ARCH_PC_REG): Likewise. * linux/i386/arch_regs.c(ARCH_PC_REG): Likewise. * linux/ia64/arch_regs.c(ARCH_PC_REG): Likewise. * linux/metag/arch_regs.c(ARCH_PC_REG): Likewise. * linux/mips/arch_regs.c(ARCH_PC_REG): Likewise. * linux/nios2/arch_regs.c(ARCH_PC_REG): Likewise. * linux/or1k/arch_regs.c(ARCH_PC_REG): Likewise. * linux/powerpc64/arch_regs.c(ARCH_PC_REG): Likewise. * linux/powerpc/arch_regs.c(ARCH_PC_REG): Likewise. * linux/s390/arch_regs.c(ARCH_PC_REG): Likewise. * linux/s390x/arch_regs.c(ARCH_PC_REG): Likewise. * linux/sparc64/arch_regs.c(ARCH_PC_REG): Likewise. * linux/sparc/arch_regs.c(ARCH_PC_REG): Likewise. * linux/tile/arch_regs.c(ARCH_PC_REG): Likewise. * linux/x32/arch_regs.c(ARCH_PC_REG): Likewise. * linux/x86_64/arch_regs.c(ARCH_PC_REG): Likewise. * linux/alpha/arch_regs.c(ARCH_PC_PEEK_ADDR): Define macro. * linux/bfin/arch_regs.c(ARCH_PC_PEEK_ADDR): Likewise. * linux/crisv10/arch_regs.c(ARCH_PC_PEEK_ADDR): Likewise. * linux/crisv32/arch_regs.c(ARCH_PC_PEEK_ADDR): Likewise. * linux/hppa/arch_regs.c(ARCH_PC_PEEK_ADDR): Likewise. * linux/m68k/arch_regs.c(ARCH_PC_PEEK_ADDR): Likewise. * linux/microblaze/arch_regs.c(ARCH_PC_PEEK_ADDR): Likewise. * linux/sh64/arch_regs.c(ARCH_PC_PEEK_ADDR): Likewise. * linux/sh/arch_regs.c(ARCH_PC_PEEK_ADDR): Likewise. * linux/xtensa/arch_regs.c(ARCH_PC_PEEK_ADDR): Likewise. * syscall.c (print_pc): Stop including "print_pc.c". Use ARCH_PC_REG or ARCH_PC_PEEK_ADDR.
2015-11-30 03:30:51 +00:00
#define ARCH_PC_PEEK_ADDR PT_IAOQ0