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
F163258052: D28725.id84639.diff
Tue, Jul 21, 12:21 PM
Unknown Object (File)
Sat, Jul 18, 7:43 PM
Unknown Object (File)
Mon, Jul 13, 11:35 AM
Unknown Object (File)
Sun, Jun 28, 3:17 AM
Unknown Object (File)
Thu, Jun 25, 6:06 AM
Unknown Object (File)
Tue, Jun 23, 4:40 AM
Unknown Object (File)
Jun 20 2026, 3:18 PM
Unknown Object (File)
Jun 20 2026, 9: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