MCPcopy Create free account
hub / github.com/F-Stack/f-stack / abort_debug

Function abort_debug

freebsd/arm/arm/trap-v6.c:248–266  ·  view source on GitHub ↗

* abort_debug() handles the following abort: * * FAULT_DEBUG - Debug Event * */

Source from the content-addressed store, hash-verified

246 *
247 */
248static __inline void
249abort_debug(struct trapframe *tf, u_int fsr, u_int prefetch, bool usermode,
250 u_int far)
251{
252
253 if (usermode) {
254 struct thread *td;
255
256 td = curthread;
257 call_trapsignal(td, SIGTRAP, TRAP_BRKPT, far, FAULT_DEBUG);
258 userret(td, tf);
259 } else {
260#ifdef KDB
261 kdb_trap((prefetch) ? T_BREAKPOINT : T_WATCHPOINT, 0, tf);
262#else
263 printf("No debugger in kernel.\n");
264#endif
265 }
266}
267
268/*
269 * Abort handler.

Callers 1

abort_handlerFunction · 0.85

Calls 4

userretFunction · 0.85
kdb_trapFunction · 0.85
call_trapsignalFunction · 0.70
printfFunction · 0.50

Tested by

no test coverage detected