Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Aug 2017 19:16:24 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r322627 - head/sys/arm64/arm64
Message-ID:  <201708171916.v7HJGO4C092259@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708171916.v7HJGO4C092259>