diff options
Diffstat (limited to 'libsandbox/trace/linux/common.c')
-rw-r--r-- | libsandbox/trace/linux/common.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libsandbox/trace/linux/common.c b/libsandbox/trace/linux/common.c index de74caf..5ca9491 100644 --- a/libsandbox/trace/linux/common.c +++ b/libsandbox/trace/linux/common.c @@ -1,5 +1,9 @@ -static long do_peekuser(long offset); -static long do_pokeuser(long offset, long val); +/* + * Some arches (like hppa) don't implement PTRACE_GETREGS, while others (like + * sparc) swap the meaning of "addr" and "data. What a bunch of asshats. + */ +#define trace_get_regs(regs) do_ptrace(PTRACE_GETREGS, NULL, regs) +#define trace_set_regs(regs) do_ptrace(PTRACE_SETREGS, NULL, regs) static int trace_errno(long err) { |