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

Function db_command_loop

freebsd/ddb/db_command.c:518–537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516}
517
518void
519db_command_loop(void)
520{
521 /*
522 * Initialize 'prev' and 'next' to dot.
523 */
524 db_prev = db_dot;
525 db_next = db_dot;
526
527 db_cmd_loop_done = 0;
528 while (!db_cmd_loop_done) {
529 if (db_print_position() != 0)
530 db_printf("\n");
531
532 db_printf("db> ");
533 (void) db_read_line();
534
535 db_command(&db_last_command, &db_cmd_table, /* dopager */ 1);
536 }
537}
538
539/*
540 * Execute a command on behalf of a script. The caller is responsible for

Callers 1

db_trapFunction · 0.85

Calls 4

db_print_positionFunction · 0.85
db_printfFunction · 0.85
db_read_lineFunction · 0.85
db_commandFunction · 0.85

Tested by

no test coverage detected