svn commit: r322627 - head/sys/arm64/arm64
Ed Maste
emaste at FreeBSD.org
Thu Aug 17 19:16:25 UTC 2017
Author: emaste
Date: Thu Aug 17 19:16:23 2017
New Revision: 322627
URL: https://svnweb.freebsd.org/changeset/base/322627
Log:
arm64: return error instead of panic in unimplemented ptrace ops
We don't need a panic as a reminder that these need to be implemented.
Reported by: Shawn Webb
MFC after: 3 week
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/arm64/arm64/machdep.c
Modified: head/sys/arm64/arm64/machdep.c
==============================================================================
--- head/sys/arm64/arm64/machdep.c Thu Aug 17 18:08:45 2017 (r322626)
+++ head/sys/arm64/arm64/machdep.c Thu Aug 17 19:16:23 2017 (r322627)
@@ -257,22 +257,24 @@ int
fill_dbregs(struct thread *td, struct dbreg *regs)
{
- panic("ARM64TODO: fill_dbregs");
+ printf("ARM64TODO: fill_dbregs");
+ return (EDOOFUS);
}
int
set_dbregs(struct thread *td, struct dbreg *regs)
{
- panic("ARM64TODO: set_dbregs");
+ printf("ARM64TODO: set_dbregs");
+ return (EDOOFUS);
}
int
ptrace_set_pc(struct thread *td, u_long addr)
{
- panic("ARM64TODO: ptrace_set_pc");
- return (0);
+ printf("ARM64TODO: ptrace_set_pc");
+ return (EDOOFUS);
}
int
More information about the svn-src-all
mailing list