[lldb] Add newline in output of `target modules lookup`
authorAlvin Wong <alvin@alvinhc.com>
Tue, 27 Sep 2022 10:09:45 +0000 (13:09 +0300)
committerMartin Storsjö <martin@martin.st>
Tue, 27 Sep 2022 10:09:45 +0000 (13:09 +0300)
commita426753ef0290362a0268f917dba46d6b9744b02
tree888d4e243a00d1c41fc1f8374574514ef226652c
parent8427c836f7b4596ae3529a138a66c77bd4f04a98
[lldb] Add newline in output of `target modules lookup`

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.

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D134111
lldb/source/Commands/CommandObjectTarget.cpp
lldb/test/Shell/Commands/Inputs/symbols.yaml [new file with mode: 0644]
lldb/test/Shell/Commands/command-target-modules-lookup.test [new file with mode: 0644]