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

Function db_watchdog

freebsd/ddb/db_command.c:758–779  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

756}
757
758static void
759db_watchdog(db_expr_t dummy1, bool dummy2, db_expr_t dummy3, char *dummy4)
760{
761 db_expr_t old_radix, tout;
762 int err, i;
763
764 old_radix = db_radix;
765 db_radix = 10;
766 err = db_expression(&tout);
767 db_skip_to_eol();
768 db_radix = old_radix;
769
770 /* If no argument is provided the watchdog will just be disabled. */
771 if (err == 0) {
772 db_printf("No argument provided, disabling watchdog\n");
773 tout = 0;
774 } else if ((tout & WD_INTERVAL) == WD_TO_NEVER) {
775 db_error("Out of range watchdog interval\n");
776 return;
777 }
778 EVENTHANDLER_INVOKE(watchdog_list, tout, &i);
779}
780
781static void
782db_gdb(db_expr_t dummy1, bool dummy2, db_expr_t dummy3, char *dummy4)

Callers

nothing calls this directly

Calls 4

db_expressionFunction · 0.85
db_skip_to_eolFunction · 0.85
db_printfFunction · 0.85
db_errorFunction · 0.85

Tested by

no test coverage detected