From 4b3ca293bf941ee2122afc9e7ccef92de55899a0 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Mon, 8 Mar 2010 17:01:31 +0200 Subject: [PATCH] Fix PT_SYSCALL ignoring of ip --- tests/test-ptrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-ptrace.c b/tests/test-ptrace.c index cbbf4896..b7de6827 100644 --- a/tests/test-ptrace.c +++ b/tests/test-ptrace.c @@ -310,7 +310,7 @@ main (int argc, char **argv) #if HAVE_DECL_PTRACE_SYSCALL ptrace (PTRACE_SYSCALL, target_pid, 0, pending_sig); #elif HAVE_DECL_PT_SYSCALL - ptrace (PT_SYSCALL, target_pid, 0, pending_sig); + ptrace (PT_SYSCALL, target_pid, (caddr_t)1, pending_sig); #else #error Syscall me #endif