svn commit: r340025 - head/sys/riscv/riscv
John Baldwin
jhb at FreeBSD.org
Thu Nov 1 22:11:27 UTC 2018
Author: jhb
Date: Thu Nov 1 22:11:26 2018
New Revision: 340025
URL: https://svnweb.freebsd.org/changeset/base/340025
Log:
Implement ptrace_set_pc() and fail PT_*STEP requests explicitly.
Reviewed by: markj
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D17769
Modified:
head/sys/riscv/riscv/machdep.c
Modified: head/sys/riscv/riscv/machdep.c
==============================================================================
--- head/sys/riscv/riscv/machdep.c Thu Nov 1 21:51:41 2018 (r340024)
+++ head/sys/riscv/riscv/machdep.c Thu Nov 1 22:11:26 2018 (r340025)
@@ -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
More information about the svn-src-all
mailing list