Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Nov 2017 11:04:47 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r326312 - head/sys/arm64/arm64
Message-ID:  <201711281104.vASB4lTu024913@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andrew
Date: Tue Nov 28 11:04:47 2017
New Revision: 326312
URL: https://svnweb.freebsd.org/changeset/base/326312

Log:
  When we exit the kernel debugger having entered because of a breakpoint
  instruction we need to jump over the instruction. Without this we will
  execute the same instruction again and enter into the debugger again.
  
  PR:		223917
  Reported by:	emaste
  MFC after:	1 week
  Sponsored by:	DARPA, AFRL

Modified:
  head/sys/arm64/arm64/trap.c

Modified: head/sys/arm64/arm64/trap.c
==============================================================================
--- head/sys/arm64/arm64/trap.c	Tue Nov 28 09:34:43 2017	(r326311)
+++ head/sys/arm64/arm64/trap.c	Tue Nov 28 11:04:47 2017	(r326312)
@@ -323,7 +323,10 @@ do_el1h_sync(struct thread *td, struct trapframe *fram
 			break;
 		}
 #endif
-		/* FALLTHROUGH */
+		kdb_trap(exception, 0,
+		    (td->td_frame != NULL) ? td->td_frame : frame);
+		frame->tf_elr -= 4;
+		break;
 	case EXCP_WATCHPT_EL1:
 	case EXCP_SOFTSTP_EL1:
 #ifdef KDB



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