svn commit: r322748 - stable/11/sys/arm64/arm64

Ed Maste emaste at FreeBSD.org
Mon Aug 21 12:23:12 UTC 2017


Author: emaste
Date: Mon Aug 21 12:23:11 2017
New Revision: 322748
URL: https://svnweb.freebsd.org/changeset/base/322748

Log:
  MFC r322627: 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
  Sponsored by:	The FreeBSD Foundation

Modified:
  stable/11/sys/arm64/arm64/machdep.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/arm64/arm64/machdep.c
==============================================================================
--- stable/11/sys/arm64/arm64/machdep.c	Mon Aug 21 11:56:47 2017	(r322747)
+++ stable/11/sys/arm64/arm64/machdep.c	Mon Aug 21 12:23:11 2017	(r322748)
@@ -242,22 +242,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