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

Function db_dump

freebsd/ddb/db_command.c:565–590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

563}
564
565static void
566db_dump(db_expr_t dummy, bool dummy2, db_expr_t dummy3, char *dummy4)
567{
568 int error;
569
570 if (textdump_pending) {
571 db_printf("textdump_pending set.\n"
572 "run \"textdump unset\" first or \"textdump dump\" for a textdump.\n");
573 return;
574 }
575 error = doadump(false);
576 if (error) {
577 db_printf("Cannot dump: ");
578 switch (error) {
579 case EBUSY:
580 db_printf("debugger got invoked while dumping.\n");
581 break;
582 case ENXIO:
583 db_printf("no dump device specified.\n");
584 break;
585 default:
586 db_printf("unknown error (error=%d).\n", error);
587 break;
588 }
589 }
590}
591
592/*
593 * Call random function:

Callers

nothing calls this directly

Calls 2

db_printfFunction · 0.85
doadumpFunction · 0.85

Tested by

no test coverage detected