diff options
author | davidxu <davidxu@FreeBSD.org> | 2004-07-13 07:22:56 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2004-07-13 07:22:56 +0000 |
commit | 0a29616acf6f4bc7e940a58de1e9ef27a2b2191c (patch) | |
tree | e1ecc998f02711a0013b59d58ed0909c9107eec1 /sys/pc98 | |
parent | 1920ad199e7dd23d7b308c9caa9ed999e2947329 (diff) | |
download | FreeBSD-src-0a29616acf6f4bc7e940a58de1e9ef27a2b2191c.zip FreeBSD-src-0a29616acf6f4bc7e940a58de1e9ef27a2b2191c.tar.gz |
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.
Diffstat (limited to 'sys/pc98')
-rw-r--r-- | sys/pc98/i386/machdep.c | 7 | ||||
-rw-r--r-- | sys/pc98/pc98/machdep.c | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c index 67e5f71..96576ee 100644 --- a/sys/pc98/i386/machdep.c +++ b/sys/pc98/i386/machdep.c @@ -2309,6 +2309,13 @@ ptrace_single_step(struct thread *td) } int +ptrace_clear_single_step(struct thread *td) +{ + td->td_frame->tf_eflags &= ~PSL_T; + return (0); +} + +int fill_regs(struct thread *td, struct reg *regs) { struct pcb *pcb; diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c index 67e5f71..96576ee 100644 --- a/sys/pc98/pc98/machdep.c +++ b/sys/pc98/pc98/machdep.c @@ -2309,6 +2309,13 @@ ptrace_single_step(struct thread *td) } int +ptrace_clear_single_step(struct thread *td) +{ + td->td_frame->tf_eflags &= ~PSL_T; + return (0); +} + +int fill_regs(struct thread *td, struct reg *regs) { struct pcb *pcb; |