aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectTarget.cpp
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2023-02-07 17:39:31 +0000
committerDavid Spickett <david.spickett@linaro.org>2023-02-09 10:44:50 +0000
commit6a4e9ccb2c6f3340eb01bd374988a55daed2a68d (patch)
tree19336ffa1e515db7ee442f397f737677738ad102 /lldb/source/Commands/CommandObjectTarget.cpp
parentb1883aaecb4191d2f257779c29ab154021b147df (diff)
downloadllvm-6a4e9ccb2c6f3340eb01bd374988a55daed2a68d.zip
llvm-6a4e9ccb2c6f3340eb01bd374988a55daed2a68d.tar.gz
llvm-6a4e9ccb2c6f3340eb01bd374988a55daed2a68d.tar.bz2
[LLDB] Add missing newline to "image lookup" output
When using --name, due to a missing newline, multiple symbol results were not correctly printed: ``` (lldb) image lookup -r -n "As<.*" 2 matches found in <...>/tbi_lisp: Address: tbi_lisp<...> Summary: tbi_lisp<...> at Symbol.cpp:75 Address: tbi_lisp<...> Summary: tbi_lisp<...> at Symbol.cpp:82 ``` It should be: ``` (lldb) image lookup -r -n "As<.*" 2 matches found in /home/david.spickett/tbi_lisp/tbi_lisp: Address: tbi_lisp<...> Summary: tbi_lisp<...> at Symbol.cpp:75 Address: tbi_lisp<...> Summary: tbi_lisp<...> at Symbol.cpp:82 ``` With Address/Summary on separate lines. Reviewed By: clayborg, labath Differential Revision: https://reviews.llvm.org/D143564
Diffstat (limited to 'lldb/source/Commands/CommandObjectTarget.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectTarget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectTarget.cpp b/lldb/source/Commands/CommandObjectTarget.cpp
index 3d53de1..490a7e0 100644
--- a/lldb/source/Commands/CommandObjectTarget.cpp
+++ b/lldb/source/Commands/CommandObjectTarget.cpp
@@ -1582,6 +1582,8 @@ static void DumpSymbolContextList(ExecutionContextScope *exe_scope,
sc.GetAddressRange(eSymbolContextEverything, 0, true, range);
DumpAddress(exe_scope, range.GetBaseAddress(), verbose, all_ranges, strm);
+ if (i != (num_matches - 1))
+ strm.EOL();
}
}
strm.IndentLess();