diff options
author | John Baldwin <jhb@FreeBSD.org> | 2018-11-01 22:11:26 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2018-11-01 22:11:26 +0000 |
commit | ada1ceef0bb238b6ae40a1a5e38f08066a46e3d5 (patch) | |
tree | eed7be3cd3de092d6fca7a7da458a8004fa6a014 /sys | |
parent | 9385e92b259bbb5e87c6a4be71c9602cb4d35d0f (diff) | |
download | src-ada1ceef0bb238b6ae40a1a5e38f08066a46e3d5.tar.gz src-ada1ceef0bb238b6ae40a1a5e38f08066a46e3d5.zip |
Implement ptrace_set_pc() and fail PT_*STEP requests explicitly.
Reviewed by: markj
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D17769
Notes
Notes:
svn path=/head/; revision=340025
Diffstat (limited to 'sys')
-rw-r--r-- | sys/riscv/riscv/machdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/riscv/riscv/machdep.c b/sys/riscv/riscv/machdep.c index 430336408368..8edf6583f6c7 100644 --- a/sys/riscv/riscv/machdep.c +++ b/sys/riscv/riscv/machdep.c @@ -254,7 +254,7 @@ int ptrace_set_pc(struct thread *td, u_long addr) { - panic("ptrace_set_pc"); + td->td_frame->tf_sepc = addr; return (0); } @@ -263,7 +263,7 @@ ptrace_single_step(struct thread *td) { /* TODO; */ - return (0); + return (EOPNOTSUPP); } int @@ -271,7 +271,7 @@ ptrace_clear_single_step(struct thread *td) { /* TODO; */ - return (0); + return (EOPNOTSUPP); } void |