From 8519aa2ff041ebfe2fa21adb87df58dd07ab461a Mon Sep 17 00:00:00 2001 From: robert Date: Thu, 9 Oct 2003 10:17:16 +0000 Subject: Implement preliminary support for the PT_SYSCALL command to ptrace(2). --- sys/sparc64/sparc64/trap.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sys/sparc64') diff --git a/sys/sparc64/sparc64/trap.c b/sys/sparc64/sparc64/trap.c index c60a53f..5fb5d5d 100644 --- a/sys/sparc64/sparc64/trap.c +++ b/sys/sparc64/sparc64/trap.c @@ -55,6 +55,7 @@ #include #include #include +#include #include #include #include @@ -578,6 +579,8 @@ syscall(struct trapframe *tf) STOPEVENT(p, S_SCE, narg); /* MP aware */ + PTRACESTOP_SC(p, td, S_PT_SCE); + error = (*callp->sy_call)(td, argp); CTR5(KTR_SYSC, "syscall: p=%p error=%d %s return %#lx %#lx ", p, @@ -642,6 +645,8 @@ syscall(struct trapframe *tf) */ STOPEVENT(p, S_SCX, code); + PTRACESTOP_SC(p, td, S_PT_SCX); + #ifdef DIAGNOSTIC cred_free_thread(td); #endif -- cgit v1.1