|
1 | 1 | ## Test that reconstructs a dSYM file from YAML and generates a gsym from it. The gsym has callsite info and merged functions.
|
2 | 2 |
|
| 3 | +# TODO: Add line numbers instead of ':{{.}}' below - after introducing accurate DIE-based lookups: https://github.com/llvm/llvm-project/pull/123391 |
| 4 | + |
3 | 5 | # RUN: split-file %s %t
|
4 | 6 | # RUN: yaml2obj %t/merged_callsites.dSYM.yaml -o %t/merged_callsites.dSYM
|
5 | 7 |
|
|
61 | 63 |
|
62 | 64 | # RUN: llvm-gsymutil %t/dwarf_call_sites_dSYM.gsym --merged-functions --address=0x000000010000035c --merged-functions-filter="function3_copy1" | FileCheck --check-prefix=CHECK-C3 %s
|
63 | 65 | # CHECK-C3: Found 1 function at address 0x000000010000035c:
|
64 |
| -# CHECK-C3-NEXT: 0x000000010000035c: function3_copy1 + 16 @ /tmp/tst{{[/\\]}}out/merged_funcs_test.cpp:28 |
| 66 | +# CHECK-C3-NEXT: 0x000000010000035c: function3_copy1 + 16 @ /tmp/tst{{[/\\]}}out/merged_funcs_test.cpp:{{.}} |
65 | 67 | # CHECK-C3-NEXT: CallSites: function4_copy1
|
66 | 68 |
|
67 | 69 | # RUN: llvm-gsymutil %t/dwarf_call_sites_dSYM.gsym --merged-functions --address=0x0000000100000340 --merged-functions-filter="function4_copy1" | FileCheck --check-prefix=CHECK-C4 %s
|
68 | 70 | # CHECK-C4: Found 1 function at address 0x0000000100000340:
|
69 |
| -# CHECK-C4-NEXT: 0x0000000100000340: function4_copy1 + 8 @ /tmp/tst{{[/\\]}}out/merged_funcs_test.cpp:14 |
| 71 | +# CHECK-C4-NEXT: 0x0000000100000340: function4_copy1 + 8 @ /tmp/tst{{[/\\]}}out/merged_funcs_test.cpp:{{.}} |
70 | 72 |
|
71 | 73 | ### ----------------------------------------------------------------------------------------------------------------------------------
|
72 | 74 | ### Resolve the 2nd call stack - the 2nd and 3rd addresses are the same but they resolve to a different function because of the filter
|
|
78 | 80 |
|
79 | 81 | # RUN: llvm-gsymutil %t/dwarf_call_sites_dSYM.gsym --merged-functions --address=0x000000010000035c --merged-functions-filter="function3_copy2" | FileCheck --check-prefix=CHECK-C6 %s
|
80 | 82 | # CHECK-C6: Found 1 function at address 0x000000010000035c:
|
81 |
| -# CHECK-C6-NEXT: 0x000000010000035c: function3_copy2 + 16 @ /tmp/tst{{[/\\]}}out/merged_funcs_test.cpp:28 |
| 83 | +# CHECK-C6-NEXT: 0x000000010000035c: function3_copy2 + 16 @ /tmp/tst{{[/\\]}}out/merged_funcs_test.cpp:{{.}} |
82 | 84 | # CHECK-C6-NEXT: CallSites: function4_copy2
|
83 | 85 |
|
84 | 86 | # RUN: llvm-gsymutil %t/dwarf_call_sites_dSYM.gsym --merged-functions --merged-functions-filter="function4_copy2" --address=0x0000000100000340 | FileCheck --check-prefix=CHECK-C7 %s
|
85 | 87 | # CHECK-C7: Found 1 function at address 0x0000000100000340:
|
86 |
| -# CHECK-C7-NEXT: 0x0000000100000340: function4_copy2 + 8 @ /tmp/tst{{[/\\]}}out/merged_funcs_test.cpp:14 |
| 88 | +# CHECK-C7-NEXT: 0x0000000100000340: function4_copy2 + 8 @ /tmp/tst{{[/\\]}}out/merged_funcs_test.cpp:{{.}} |
87 | 89 |
|
88 | 90 |
|
89 | 91 | #--- merged_funcs_test.cpp
|
|
0 commit comments