aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/riscv/riscv/machdep.c6
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