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

Function kdb_enter

freebsd/kern/subr_kdb.c:497–508  ·  view source on GitHub ↗

* Enter the currently selected debugger. If a message has been provided, * it is printed first. If the debugger does not support the enter method, * it is entered by using breakpoint(), which enters the debugger through * kdb_trap(). The 'why' argument will contain a more mechanically usable * string than 'msg', and is relied upon by DDB scripting to identify the * reason for entering the de

Source from the content-addressed store, hash-verified

495 * reason for entering the debugger so that the right script can be run.
496 */
497void
498kdb_enter(const char *why, const char *msg)
499{
500
501 if (kdb_dbbe != NULL && kdb_active == 0) {
502 if (msg != NULL)
503 printf("KDB: enter: %s\n", msg);
504 kdb_why = why;
505 breakpoint();
506 kdb_why = KDB_WHY_UNSET;
507 }
508}
509
510/*
511 * Initialize the kernel debugger interface.

Callers 15

i386_kdb_initFunction · 0.85
mips_initFunction · 0.85
platform_startFunction · 0.85
platform_startFunction · 0.85
platform_startFunction · 0.85
mips_initFunction · 0.85
mips_initFunction · 0.85
mips_initFunction · 0.85
mips_initFunction · 0.85
mips_initFunction · 0.85
amd64_kdb_initFunction · 0.85
arm_kdb_initFunction · 0.85

Calls 2

printfFunction · 0.70
breakpointFunction · 0.50

Tested by

no test coverage detected