Improve ddb(4) error reporting a bit.
Obtained from: CheriBSD MFC after: 2 weeks Sponsored by: DARPA, AFRL
This commit is contained in:
parent
b5bd6c7383
commit
9990da25ea
@ -372,7 +372,8 @@ db_command(struct command **last_cmdp, struct command_table *cmd_table,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (t != tIDENT) {
|
else if (t != tIDENT) {
|
||||||
db_printf("?\n");
|
db_printf("Unrecognized input; use \"help\" "
|
||||||
|
"to list available commands\n");
|
||||||
db_flush_lex();
|
db_flush_lex();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -643,7 +644,7 @@ db_fncall(db_expr_t dummy1, bool dummy2, db_expr_t dummy3, char *dummy4)
|
|||||||
db_unread_token(t);
|
db_unread_token(t);
|
||||||
}
|
}
|
||||||
if (db_read_token() != tRPAREN) {
|
if (db_read_token() != tRPAREN) {
|
||||||
db_printf("?\n");
|
db_printf("Mismatched parens\n");
|
||||||
db_flush_lex();
|
db_flush_lex();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user