[all-commits] [llvm/llvm-project] 6a4e9c: [LLDB] Add missing newline to "image lookup" output

David Spickett via All-commits all-commits at lists.llvm.org
Thu Feb 9 02:45:04 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6a4e9ccb2c6f3340eb01bd374988a55daed2a68d
      https://github.com/llvm/llvm-project/commit/6a4e9ccb2c6f3340eb01bd374988a55daed2a68d
  Author: David Spickett <david.spickett at linaro.org>
  Date:   2023-02-09 (Thu, 09 Feb 2023)

  Changed paths:
    M lldb/source/Commands/CommandObjectTarget.cpp
    M lldb/test/Shell/Commands/command-target-modules-lookup.test

  Log Message:
  -----------
  [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




More information about the All-commits mailing list