Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Aug 2017 12:23:11 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r322748 - stable/11/sys/arm64/arm64
Message-ID:  <201708211223.v7LCNBbN090868@repo.freebsd.org>

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



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