This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Change implementation of memory read --show-tags option
ClosedPublic

Authored by DavidSpickett on May 6 2022, 5:44 AM.

Details

Summary

This does 2 things:

  • Moves it after the short options. Which makes sense given it's a niche, default off option. (if 2 files for one option seems a bit much, I am going to reuse them for "memory find" later)
  • Fixes the use of repeated commands. For example: memory read buf --show-tags <shows tags> memory read <shows tags>

Added tests for the repetition and updated existing help tests.

Diff Detail

Event Timeline

DavidSpickett created this revision.May 6 2022, 5:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 6 2022, 5:44 AM
Herald added a subscriber: mgorny. · View Herald Transcript
DavidSpickett requested review of this revision.May 6 2022, 5:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 6 2022, 5:44 AM

I did try to add the option via Options.td but adding a multi character short option there doesn't seem to work. I could enable that but it seems like just as much work to make an option group for it.

omjavaid accepted this revision.May 17 2022, 8:44 PM
This revision is now accepted and ready to land.May 17 2022, 8:44 PM