Page MenuHomeFreeBSD

ddb: just move cursor when the lexer backs up
ClosedPublic

Authored by rlibby on Feb 17 2021, 6:56 AM.
Tags
None
Referenced Files
F81876558: D28725.id.diff
Mon, Nov 25, 5:18 AM
F81876557: D28725.id.diff
Mon, Nov 25, 5:18 AM
Unknown Object (File)
Thu, Nov 21, 1:12 AM
Unknown Object (File)
Wed, Nov 20, 9:30 PM
Unknown Object (File)
Mon, Nov 18, 2:28 AM
Unknown Object (File)
Sat, Nov 9, 12:12 PM
Unknown Object (File)
Sat, Nov 9, 12:08 PM
Unknown Object (File)
Fri, Nov 8, 3:25 AM
Subscribers

Details

Summary

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

Test Plan
db> script lockinfo=show alllocks
db> script lockinfo

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Thank you!

sys/ddb/db_lex.c
113

Convert to an ANSI definition while here?

This revision is now accepted and ready to land.Feb 17 2021, 4:16 PM

markj feedback: ANSI-fy while here

This revision now requires review to proceed.Feb 17 2021, 4:28 PM
This revision is now accepted and ready to land.Feb 17 2021, 4:37 PM