HomeFreeBSD

ddb: just move cursor when the lexer backs up

Description

ddb: just move cursor when the lexer backs up

Get rid of db_look_char because it's not compatible with db_get_line().
This fixes the following issue:

db> script lockinfo=show alllocks
db> run lockinfo
db:0:lockinfo> how alllocks
No such command; use "help" to list available commands

Reported by: markj
Reviewed by: markj
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D28725

Details

Provenance
rlibbyAuthored on Feb 24 2021, 11:56 PM
Reviewer
markj
Differential Revision
D28725: ddb: just move cursor when the lexer backs up
Parents
rGd85c9cef1380: ddb: reliably fail with ambiguous commands
Branches
Unknown
Tags
Unknown