diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2015-02-13 02:12:14 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2015-02-13 18:28:08 +0000 |
commit | 5503dd28c6cab61af949f592e8bfcdaf1380cfef (patch) | |
tree | 14b96b73282338369741dbb9d36a7a7ef0afd75d /process.c | |
parent | fadf379b8e3618585cecad447867af27930ac5e3 (diff) | |
download | strace-5503dd28c6cab61af949f592e8bfcdaf1380cfef.tar.gz |
Move regs-related macros and declarations from defs.h to regs.h
* regs.h: New file.
* Makefile.am (strace_SOURCES): Add it.
* linux/arch_regs.h: New file.
* linux/alpha/arch_regs.h: Likewise.
* linux/arm/arch_regs.h: Likewise.
* linux/hppa/arch_regs.h: Likewise.
* linux/i386/arch_regs.h: Likewise.
* linux/ia64/arch_regs.h: Likewise.
* linux/mips/arch_regs.h: Likewise.
* linux/powerpc/arch_regs.h: Likewise.
* linux/sh64/arch_regs.h: Likewise.
* linux/sparc/arch_regs.h: Likewise.
* linux/sparc64/arch_regs.h: Likewise.
* linux/tile/arch_regs.h: Likewise.
* linux/x86_64/arch_regs.h: Likewise.
* Makefile.am (EXTRA_DIST): Add them.
* defs.h: Remove definitions of PTRACE_*, REG_*, PT_*, U_REG_*,
and ARM_* macros.
Remove declarations of struct pt_regs variables.
[SPARC]: Do not include <asm/psr.h>.
[SPARC64]: Do not include <asm/psrcompat.h>.
* bjm.c: Do not include <sys/user.h>.
* process.c: Include "regs.h".
Do not include <sys/user.h> and <sys/reg.h>.
[IA64]: Do not include <asm/ptrace_offsets.h> and <asm/rse.h>.
* util.c: Likewise.
* syscall.c: Likewise.
[AARCH64]: Define struct arm_pt_regs and ARM_* macros.
[SPARC]: Include <asm/psr.h>.
[SPARC64]: Include <asm/psrcompat.h>.
* signal.c: Include "regs.h".
Do not include <sys/user.h> and <sys/reg.h>.
[IA64]: Do not include <asm/ptrace_offsets.h>.
* strace.c [IA64]: Do not include <asm/ptrace_offsets.h>.
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 19 |
1 files changed, 1 insertions, 18 deletions
@@ -42,28 +42,11 @@ #include "xlat/nt_descriptor_types.h" -#include <sys/user.h> -#ifdef HAVE_SYS_REG_H -# include <sys/reg.h> -#endif - #include "ptrace.h" - -#if defined(SPARC64) -# define r_pc r_tpc -# undef PTRACE_GETREGS -# define PTRACE_GETREGS PTRACE_GETREGS64 -# undef PTRACE_SETREGS -# define PTRACE_SETREGS PTRACE_SETREGS64 -#endif - #include "xlat/ptrace_cmds.h" #include "xlat/ptrace_setoptions_flags.h" -#if defined(IA64) -# include <asm/ptrace_offsets.h> -# include <asm/rse.h> -#endif +#include "regs.h" #define uoff(member) offsetof(struct user, member) #define XLAT_UOFF(member) { uoff(member), "offsetof(struct user, " #member ")" } |