1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-10 14:02:43 +00:00

Fix the direction we move the instruction to retuirn to after exiting the

kernel debugger. We should skip the breakpoint instruction, not execute the
instruction before it.

Pointy-hat to:	andrew
MFC after:	1 week
Sponsored by:	DARPA, AFRL
This commit is contained in:
Andrew Turner 2017-11-28 16:26:56 +00:00
parent bf7fa6b4ca
commit b4cc39e785
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326318

View File

@ -325,7 +325,7 @@ do_el1h_sync(struct thread *td, struct trapframe *frame)
#endif
kdb_trap(exception, 0,
(td->td_frame != NULL) ? td->td_frame : frame);
frame->tf_elr -= 4;
frame->tf_elr += 4;
break;
case EXCP_WATCHPT_EL1:
case EXCP_SOFTSTP_EL1: