diff options
author | David Xu <davidxu@FreeBSD.org> | 2004-07-13 07:22:56 +0000 |
---|---|---|
committer | David Xu <davidxu@FreeBSD.org> | 2004-07-13 07:22:56 +0000 |
commit | 53dbf303491f486ef2c376e6330280cf2bd2d162 (patch) | |
tree | e1ecc998f02711a0013b59d58ed0909c9107eec1 /sys/amd64 | |
parent | cbf4e354ec2e443527cf031282f960cd0fd1a7ad (diff) | |
download | src-53dbf303491f486ef2c376e6330280cf2bd2d162.tar.gz src-53dbf303491f486ef2c376e6330280cf2bd2d162.zip |
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.
Notes
Notes:
svn path=/head/; revision=132088
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/machdep.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index bfd0edc7b7ed..b95c211ad1c2 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -1303,6 +1303,13 @@ ptrace_single_step(struct thread *td) } int +ptrace_clear_single_step(struct thread *td) +{ + td->td_frame->tf_rflags &= ~PSL_T; + return (0); +} + +int fill_regs(struct thread *td, struct reg *regs) { struct pcb *pcb; |