This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Add newline in output of `target modules lookup`
ClosedPublic

Authored by alvinhochun on Sep 17 2022, 6:04 AM.

Details

Summary

This adds a line break between each result address in the output of the
lldb command target modules lookup. Before this change, a new address
result will be printed on the same line as the summary of the last
result, making the output difficult to view.

Also adds a test for this command.

Diff Detail

Event Timeline

alvinhochun created this revision.Sep 17 2022, 6:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 17 2022, 6:04 AM
alvinhochun requested review of this revision.Sep 17 2022, 6:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 17 2022, 6:04 AM
labath accepted this revision.Sep 19 2022, 4:09 AM
labath added inline comments.
lldb/test/Shell/Commands/command-target-modules-lookup.test
13

This might be better off as an --implicit-check-not argument to FileCheck. As it stands now, it will only check that ignoreThisFunction does not appear at the very end of the output.

This revision is now accepted and ready to land.Sep 19 2022, 4:09 AM

Use --implicit-check-not in test

This revision was automatically updated to reflect the committed changes.