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
13 lines
796 B
Plaintext
13 lines
796 B
Plaintext
# RUN: yaml2obj %S/Inputs/symbols.yaml -o %t
|
|
|
|
# RUN: %lldb %t -b -o "target modules lookup -A -r -s some" | FileCheck %s -DMODULE=%basename_t.tmp --implicit-check-not ignoreThisFunction
|
|
# CHECK: 4 symbols match the regular expression 'some' in {{.*}}[[MODULE]]:
|
|
# CHECK-NEXT: Address: [[MODULE]][0x0000000000000000] ([[MODULE]]..text + 0)
|
|
# CHECK-NEXT: Summary: [[MODULE]]`someFunc(int, int, int)
|
|
# CHECK-NEXT: Address: [[MODULE]][0x000000000000001c] ([[MODULE]]..text + 28)
|
|
# CHECK-NEXT: Summary: [[MODULE]]`someFunc(char, int)
|
|
# CHECK-NEXT: Address: [[MODULE]][0x0000000000000034] ([[MODULE]]..text + 52)
|
|
# CHECK-NEXT: Summary: [[MODULE]]`someOtherFunc()
|
|
# CHECK-NEXT: Address: [[MODULE]][0x0000000000000038] ([[MODULE]]..text + 56)
|
|
# CHECK-NEXT: Summary: [[MODULE]]`someOtherFunc(double)
|