mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
Fix arm64 buildkernel target with "nooptions KDB"
Make kdb_trap in breakpoint exception handler conditional. If "options KDB" is not present just panic with message that debugger is not enabled. PR: 224653
This commit is contained in:
parent
c58ed0b07f
commit
de14bffe33
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=331967
|
@ -323,8 +323,12 @@ do_el1h_sync(struct thread *td, struct trapframe *frame)
|
|||
break;
|
||||
}
|
||||
#endif
|
||||
#ifdef KDB
|
||||
kdb_trap(exception, 0,
|
||||
(td->td_frame != NULL) ? td->td_frame : frame);
|
||||
#else
|
||||
panic("No debugger in kernel.\n");
|
||||
#endif
|
||||
frame->tf_elr += 4;
|
||||
break;
|
||||
case EXCP_WATCHPT_EL1:
|
||||
|
|
Loading…
Reference in a new issue