From 0a29616acf6f4bc7e940a58de1e9ef27a2b2191c Mon Sep 17 00:00:00 2001 From: davidxu Date: Tue, 13 Jul 2004 07:22:56 +0000 Subject: Add ptrace_clear_single_step(), alpha already has it for years, the function will be used by ptrace to clear a thread's single step state. --- sys/ia64/ia64/machdep.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sys/ia64') diff --git a/sys/ia64/ia64/machdep.c b/sys/ia64/ia64/machdep.c index 9fed902..1dfab47 100644 --- a/sys/ia64/ia64/machdep.c +++ b/sys/ia64/ia64/machdep.c @@ -1255,6 +1255,14 @@ ptrace_single_step(struct thread *td) } int +ptrace_clear_single_step(struct thread *td) +{ + + td->td_frame->tf_special.psr &= ~IA64_PSR_SS; + return (0); +} + +int fill_regs(struct thread *td, struct reg *regs) { struct trapframe *tf; -- cgit v1.1