David Blaikie | 79c3d8b | 2019-01-24 01:19:17 +0000 | [diff] [blame] | 1 | RUN: rm -rf %t |
| 2 | RUN: mkdir -p %t |
| 3 | |
| 4 | RUN: cp %p/Inputs/split-dwarf-test.dwo %t |
| 5 | |
| 6 | RUN: cd %t |
| 7 | RUN: llvm-symbolizer --functions=linkage --inlining --demangle=false \ |
| 8 | RUN: --obj=%p/Inputs/split-dwarf-test 0x400504 0x4004f4 | FileCheck --check-prefix=CHECK --check-prefix=SPLIT --check-prefix=DWO %s |
| 9 | |
| 10 | Ensure we get the same results in the absence of gmlt-like data in the executable but the presence of a .dwo file |
| 11 | |
| 12 | RUN: echo "%p/Inputs/split-dwarf-test-nogmlt 0x400504" >> %t.input |
| 13 | RUN: echo "%p/Inputs/split-dwarf-test-nogmlt 0x4004f4" >> %t.input |
| 14 | RUN: llvm-symbolizer --functions=linkage --inlining --demangle=false \ |
| 15 | RUN: --default-arch=i386 --obj=%p/Inputs/split-dwarf-test-nogmlt 0x400504 0x4004f4 | FileCheck --check-prefix=SPLIT --check-prefix=DWO %s |
| 16 | |
| 17 | Ensure we get gmlt like results in the absence of a .dwo file but the presence of gmlt-like data in the executable |
| 18 | |
| 19 | RUN: rm %t/split-dwarf-test.dwo |
| 20 | RUN: echo "%p/Inputs/split-dwarf-test 0x400504" >> %t.input |
| 21 | RUN: echo "%p/Inputs/split-dwarf-test 0x4004f4" >> %t.input |
| 22 | RUN: llvm-symbolizer --functions=linkage --inlining --demangle=false \ |
| 23 | RUN: --default-arch=i386 --obj=%p/Inputs/split-dwarf-test 0x400504 0x4004f4 | FileCheck --check-prefix=SPLIT --check-prefix=NODWO %s |
| 24 | |
| 25 | DWO: _Z2f2v |
| 26 | NODWO: {{^f2$}} |
| 27 | SPLIT-NEXT: {{.*}}split-dwarf-test.cpp |
| 28 | SPLIT-NEXT: main |
| 29 | SPLIT-NEXT: {{.*}}split-dwarf-test.cpp |
| 30 | |
| 31 | SPLIT: _Z2f1v |
| 32 | SPLIT-NEXT: {{.*}}split-dwarf-test.cpp |