strace/linux/sparc64
Dmitry V. Levin 5105d4ac96 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
..
arch_getrval2.c syscall.c: split arch specific code into separate arch files 2015-03-23 22:24:59 +00:00
arch_regs.c Cleanup print_pc 2015-11-30 03:30:51 +00:00
arch_regs.h Move regs-related macros and declarations from defs.h to regs.h 2015-02-13 18:28:08 +00:00
arch_sigreturn.c sigreturn.c: split arch specific code into separate arch files 2015-03-23 22:25:05 +00:00
errnoent1.h sparc: rename personality 2 files to personality 1 2015-03-25 15:21:57 +01:00
errnoent.h Cleanup auxiliary errnoent files 2015-02-23 03:56:06 +00:00
get_error.c cleanup: make get_error.c files more readable 2015-11-29 00:06:45 +00:00
get_scno.c cleanup: make get_scno.c files more readable 2015-11-30 01:46:52 +00:00
get_syscall_args.c syscall.c: split arch specific code into separate arch files 2015-03-23 22:24:59 +00:00
ioctls_arch0.h ioctl: take all 32 bits of ioctl commands into account 2015-01-22 00:27:38 +00:00
ioctls_arch1.h sparc: rename personality 2 files to personality 1 2015-03-25 15:21:57 +01:00
ioctls_inc0.h ioctl: take all 32 bits of ioctl commands into account 2015-01-22 00:27:38 +00:00
ioctls_inc1.h sparc: rename personality 2 files to personality 1 2015-03-25 15:21:57 +01:00
signalent1.h sparc: rename personality 2 files to personality 1 2015-03-25 15:21:57 +01:00
signalent.h Cleanup auxiliary signalent files 2015-02-23 20:55:11 +00:00
syscallent1.h sparc: rename personality 2 files to personality 1 2015-03-25 15:21:57 +01:00
syscallent.h 2007-08-01 Roland McGrath <roland@redhat.com> 2007-08-02 01:47:08 +00:00
userent.h process.c: split struct_user_offsets into architecture-specific include files 2014-12-11 19:25:02 +00:00