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
F110399670: D28725.id84639.diff
Mon, Feb 17, 9:33 PM
F110359257: D28725.diff
Mon, Feb 17, 7:35 AM
Unknown Object (File)
Fri, Feb 14, 8:51 AM
Unknown Object (File)
Fri, Feb 14, 3:12 AM
Unknown Object (File)
Wed, Feb 5, 2:58 PM
Unknown Object (File)
Wed, Feb 5, 2:46 PM
Unknown Object (File)
Tue, Jan 28, 4:04 AM
Unknown Object (File)
Thu, Jan 23, 7:00 PM
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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 37095
Build 33984: arc lint + arc unit

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