diff options
author | Alvin Wong <alvin@alvinhc.com> | 2022-09-27 13:09:45 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2022-09-27 13:09:45 +0300 |
commit | a426753ef0290362a0268f917dba46d6b9744b02 (patch) | |
tree | 888d4e243a00d1c41fc1f8374574514ef226652c /lldb/source/Commands/CommandObjectTarget.cpp | |
parent | 8427c836f7b4596ae3529a138a66c77bd4f04a98 (diff) | |
download | llvm-a426753ef0290362a0268f917dba46d6b9744b02.zip llvm-a426753ef0290362a0268f917dba46d6b9744b02.tar.gz llvm-a426753ef0290362a0268f917dba46d6b9744b02.tar.bz2 |
[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
Diffstat (limited to 'lldb/source/Commands/CommandObjectTarget.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectTarget.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectTarget.cpp b/lldb/source/Commands/CommandObjectTarget.cpp index 08bdb85..deb7f84 100644 --- a/lldb/source/Commands/CommandObjectTarget.cpp +++ b/lldb/source/Commands/CommandObjectTarget.cpp @@ -1546,6 +1546,7 @@ static uint32_t LookupSymbolInModule(CommandInterpreter &interpreter, DumpAddress( interpreter.GetExecutionContext().GetBestExecutionContextScope(), symbol->GetAddressRef(), verbose, all_ranges, strm); + strm.EOL(); } else { strm.IndentMore(); strm.Indent(" Value: "); |