| 516 | } |
| 517 | |
| 518 | void |
| 519 | db_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 |
no test coverage detected