This revision was automatically updated to reflect the committed changes. Closed by commit rG6a4e9ccb2c6f: [LLDB] Add missing newline to "image lookup" output (authored by DavidSpickett).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D143564/new/ https://reviews.llvm.org/D143564 Files: lldb/source/Commands/CommandObjectTarget.cpp lldb/test/Shell/Commands/command-target-modules-lookup.test Index: lldb/test/Shell/Commands/command-target-modules-lookup.test =================================================================== --- lldb/test/Shell/Commands/command-target-modules-lookup.test +++ lldb/test/Shell/Commands/command-target-modules-lookup.test @@ -10,3 +10,10 @@ # CHECK-NEXT: Summary: [[MODULE]]`someOtherFunc() # CHECK-NEXT: Address: [[MODULE]][0x0000000000000038] ([[MODULE]]..text + 56) # CHECK-NEXT: Summary: [[MODULE]]`someOtherFunc(double) + +# RUN: %lldb %t -b -o "target modules lookup -r -n \".*someFunc\"" | FileCheck %s -DMODULE=%basename_t.tmp --check-prefix CHECKFN +# CHECKFN: 2 matches found in {{.*}}[[MODULE]]: +# CHECKFN-NEXT: Address: [[MODULE]][0x0000000000000000] ([[MODULE]]..text + 0) +# CHECKFN-NEXT: Summary: [[MODULE]]`someFunc(int, int, int) +# CHECKFN-NEXT: Address: [[MODULE]][0x000000000000001c] ([[MODULE]]..text + 28) +# CHECKFN-NEXT: Summary: [[MODULE]]`someFunc(char, int) \ No newline at end of file Index: lldb/source/Commands/CommandObjectTarget.cpp =================================================================== --- lldb/source/Commands/CommandObjectTarget.cpp +++ lldb/source/Commands/CommandObjectTarget.cpp @@ -1582,6 +1582,8 @@ sc.GetAddressRange(eSymbolContextEverything, 0, true, range); DumpAddress(exe_scope, range.GetBaseAddress(), verbose, all_ranges, strm); + if (i != (num_matches - 1)) + strm.EOL(); } } strm.IndentLess();
Index: lldb/test/Shell/Commands/command-target-modules-lookup.test =================================================================== --- lldb/test/Shell/Commands/command-target-modules-lookup.test +++ lldb/test/Shell/Commands/command-target-modules-lookup.test @@ -10,3 +10,10 @@ # CHECK-NEXT: Summary: [[MODULE]]`someOtherFunc() # CHECK-NEXT: Address: [[MODULE]][0x0000000000000038] ([[MODULE]]..text + 56) # CHECK-NEXT: Summary: [[MODULE]]`someOtherFunc(double) + +# RUN: %lldb %t -b -o "target modules lookup -r -n \".*someFunc\"" | FileCheck %s -DMODULE=%basename_t.tmp --check-prefix CHECKFN +# CHECKFN: 2 matches found in {{.*}}[[MODULE]]: +# CHECKFN-NEXT: Address: [[MODULE]][0x0000000000000000] ([[MODULE]]..text + 0) +# CHECKFN-NEXT: Summary: [[MODULE]]`someFunc(int, int, int) +# CHECKFN-NEXT: Address: [[MODULE]][0x000000000000001c] ([[MODULE]]..text + 28) +# CHECKFN-NEXT: Summary: [[MODULE]]`someFunc(char, int) \ No newline at end of file Index: lldb/source/Commands/CommandObjectTarget.cpp =================================================================== --- lldb/source/Commands/CommandObjectTarget.cpp +++ lldb/source/Commands/CommandObjectTarget.cpp @@ -1582,6 +1582,8 @@ sc.GetAddressRange(eSymbolContextEverything, 0, true, range); DumpAddress(exe_scope, range.GetBaseAddress(), verbose, all_ranges, strm); + if (i != (num_matches - 1)) + strm.EOL(); } } strm.IndentLess();
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits