[llvm] r352004 - llvm-symbolizer: Extract individual test cases now that it's easier to use directly (without a piped input file)
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 23 17:19:17 PST 2019
Author: dblaikie
Date: Wed Jan 23 17:19:17 2019
New Revision: 352004
URL: http://llvm.org/viewvc/llvm-project?rev=352004&view=rev
Log:
llvm-symbolizer: Extract individual test cases now that it's easier to use directly (without a piped input file)
Pulling out the split-dwarf tests by way of example of how I think
llvm-symbolizer should be tested going forward. Open to
debate/discussion, though.
Added:
llvm/trunk/test/tools/llvm-symbolizer/Inputs/dwo-test
- copied, changed from r352003, llvm/trunk/test/DebugInfo/Inputs/llvm-symbolizer-dwo-test
llvm/trunk/test/tools/llvm-symbolizer/Inputs/fission-ranges.cc
- copied, changed from r352003, llvm/trunk/test/DebugInfo/Inputs/fission-ranges.cc
llvm/trunk/test/tools/llvm-symbolizer/Inputs/fission-ranges.elf-x86_64
- copied, changed from r352003, llvm/trunk/test/DebugInfo/Inputs/fission-ranges.elf-x86_64
llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-addr-object-relocation.cpp
- copied, changed from r352003, llvm/trunk/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.cpp
llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-addr-object-relocation.dwo
- copied, changed from r352003, llvm/trunk/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.dwo
llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-addr-object-relocation.o
- copied, changed from r352003, llvm/trunk/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.o
llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-dwp.cpp
- copied, changed from r352003, llvm/trunk/test/DebugInfo/Inputs/split-dwarf-dwp.cpp
llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-dwp.o
- copied, changed from r352003, llvm/trunk/test/DebugInfo/Inputs/split-dwarf-dwp.o
llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-dwp.o.dwp
- copied, changed from r352003, llvm/trunk/test/DebugInfo/Inputs/split-dwarf-dwp.o.dwp
llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-multiple-cu.cpp
- copied, changed from r352003, llvm/trunk/test/DebugInfo/Inputs/split-dwarf-multiple-cu.cpp
llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-multiple-cu.dwo
- copied, changed from r352003, llvm/trunk/test/DebugInfo/Inputs/split-dwarf-multiple-cu.dwo
llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-multiple-cu.o
- copied, changed from r352003, llvm/trunk/test/DebugInfo/Inputs/split-dwarf-multiple-cu.o
llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-test
- copied, changed from r352003, llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test
llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-test-nogmlt
- copied, changed from r352003, llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test-nogmlt
llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-test.cc
- copied, changed from r352003, llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test.cc
llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-test.cpp
- copied, changed from r352003, llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test.cpp
llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-test.dwo
- copied, changed from r352003, llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test.dwo
llvm/trunk/test/tools/llvm-symbolizer/dwo.test
llvm/trunk/test/tools/llvm-symbolizer/fission-ranges.test
llvm/trunk/test/tools/llvm-symbolizer/split-dwarf-addr-object-relocation.test
llvm/trunk/test/tools/llvm-symbolizer/split-dwarf-dwp.test
llvm/trunk/test/tools/llvm-symbolizer/split-dwarf-multiple-cu.test
llvm/trunk/test/tools/llvm-symbolizer/split-dwarf.test
Removed:
llvm/trunk/test/DebugInfo/Inputs/fission-ranges.cc
llvm/trunk/test/DebugInfo/Inputs/fission-ranges.elf-x86_64
llvm/trunk/test/DebugInfo/Inputs/llvm-symbolizer-dwo-test
llvm/trunk/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.cpp
llvm/trunk/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.dwo
llvm/trunk/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.o
llvm/trunk/test/DebugInfo/Inputs/split-dwarf-dwp.cpp
llvm/trunk/test/DebugInfo/Inputs/split-dwarf-dwp.o
llvm/trunk/test/DebugInfo/Inputs/split-dwarf-dwp.o.dwp
llvm/trunk/test/DebugInfo/Inputs/split-dwarf-multiple-cu.cpp
llvm/trunk/test/DebugInfo/Inputs/split-dwarf-multiple-cu.dwo
llvm/trunk/test/DebugInfo/Inputs/split-dwarf-multiple-cu.o
llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test
llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test-nogmlt
llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test.cc
llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test.cpp
llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test.dwo
Modified:
llvm/trunk/test/DebugInfo/llvm-symbolizer.test
llvm/trunk/test/tools/llvm-symbolizer/split-debug.test
Removed: llvm/trunk/test/DebugInfo/Inputs/fission-ranges.cc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/Inputs/fission-ranges.cc?rev=352003&view=auto
==============================================================================
--- llvm/trunk/test/DebugInfo/Inputs/fission-ranges.cc (original)
+++ llvm/trunk/test/DebugInfo/Inputs/fission-ranges.cc (removed)
@@ -1,17 +0,0 @@
-static inline int inlined_f() {
- volatile int x = 2;
- return x;
-}
-
-int main() {
- return inlined_f();
-}
-
-// Build instructions:
-// $ mkdir /tmp/dbginfo
-// $ cp fission-ranges.cc /tmp/dbginfo/
-// $ cd /tmp/dbginfo
-// $ gcc -gsplit-dwarf -O2 -fPIC fission-ranges.cc -c -o obj2.o
-// $ clang -gsplit-dwarf -O2 -fsanitize=address -fPIC -Dmain=foo fission-ranges.cc -c -o obj1.o
-// $ gcc obj1.o obj2.o -shared -o <output>
-// $ objcopy --remove-section=.debug_aranges <output>
Removed: llvm/trunk/test/DebugInfo/Inputs/fission-ranges.elf-x86_64
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/Inputs/fission-ranges.elf-x86_64?rev=352003&view=auto
==============================================================================
Binary file - no diff available.
Removed: llvm/trunk/test/DebugInfo/Inputs/llvm-symbolizer-dwo-test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/Inputs/llvm-symbolizer-dwo-test?rev=352003&view=auto
==============================================================================
Binary file - no diff available.
Removed: llvm/trunk/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.cpp?rev=352003&view=auto
==============================================================================
--- llvm/trunk/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.cpp (original)
+++ llvm/trunk/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.cpp (removed)
@@ -1,10 +0,0 @@
-void f1();
-__attribute__((always_inline)) void f2() {
- f1();
-}
-void f3() {
- f2();
-}
-
-// $ clang++ split-dwarf-addr-object-relocation.cpp -gsplit-dwarf -c Xclang \
-// -fdebug-compilation-dir -Xclang .
Removed: llvm/trunk/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.dwo
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.dwo?rev=352003&view=auto
==============================================================================
Binary files llvm/trunk/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.dwo (original) and llvm/trunk/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.dwo (removed) differ
Removed: llvm/trunk/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.o
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.o?rev=352003&view=auto
==============================================================================
Binary files llvm/trunk/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.o (original) and llvm/trunk/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.o (removed) differ
Removed: llvm/trunk/test/DebugInfo/Inputs/split-dwarf-dwp.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/Inputs/split-dwarf-dwp.cpp?rev=352003&view=auto
==============================================================================
--- llvm/trunk/test/DebugInfo/Inputs/split-dwarf-dwp.cpp (original)
+++ llvm/trunk/test/DebugInfo/Inputs/split-dwarf-dwp.cpp (removed)
@@ -1,22 +0,0 @@
-void f1() {}
-__attribute__((always_inline)) inline void f2() {
- f1();
-}
-// throw a gap in the address range to force use of DW_AT_ranges, ranges_base,
-// range contribution in the .dwo file, etc.
-__attribute__((nodebug)) void gap() {
-}
-int main() {
- f2();
-}
-
-// To produce split-dwarf-dwp.o{,dwp}, Create another file that has ranges, so
-// the ranges_base of the CU for split-dwarf-dwp.cpp is non-zero.
-//
-// $ cat > other.cpp
-// void other1() {}
-// __attribute__((nodebug)) void other2() {}
-// void other3() {}
-// $ clang++ other.cpp split-dwarf-dwp.cpp -gsplit-dwarf -c -Xclang -fdebug-compilation-dir -Xclang . -fno-split-dwarf-inlining
-// $ llvm-dwp other.dwo split-dwarf-dwp.dwo -o test/DebugInfo/Inputs/split-dwarf-dwp.o.dwp
-// $ ld -r other.o split-dwarf-dwp.o -o test/DebugInfo/Inputs/split-dwarf-dwp.o
Removed: llvm/trunk/test/DebugInfo/Inputs/split-dwarf-dwp.o
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/Inputs/split-dwarf-dwp.o?rev=352003&view=auto
==============================================================================
Binary files llvm/trunk/test/DebugInfo/Inputs/split-dwarf-dwp.o (original) and llvm/trunk/test/DebugInfo/Inputs/split-dwarf-dwp.o (removed) differ
Removed: llvm/trunk/test/DebugInfo/Inputs/split-dwarf-dwp.o.dwp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/Inputs/split-dwarf-dwp.o.dwp?rev=352003&view=auto
==============================================================================
Binary files llvm/trunk/test/DebugInfo/Inputs/split-dwarf-dwp.o.dwp (original) and llvm/trunk/test/DebugInfo/Inputs/split-dwarf-dwp.o.dwp (removed) differ
Removed: llvm/trunk/test/DebugInfo/Inputs/split-dwarf-multiple-cu.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/Inputs/split-dwarf-multiple-cu.cpp?rev=352003&view=auto
==============================================================================
--- llvm/trunk/test/DebugInfo/Inputs/split-dwarf-multiple-cu.cpp (original)
+++ llvm/trunk/test/DebugInfo/Inputs/split-dwarf-multiple-cu.cpp (removed)
@@ -1,15 +0,0 @@
-void f1();
-__attribute__((always_inline)) inline void f2() {
- f1();
-}
-void f3() {
- f2();
-}
-
-// $ cat > other.cpp
-// extern int i;
-// int i;
-// $ clang++ other.cpp split-dwarf-multiple-cu.cpp -g -c -Xclang \
-// -fdebug-compilation-dir -Xclang . -emit-llvm -S
-// $ llvm-link other.ll split-dwarf-multiple-cu.ll -o split-dwarf-multiple-cu.bc
-// $ clang++ -gsplit-dwarf split-dwarf-multiple-cu.bc -c
Removed: llvm/trunk/test/DebugInfo/Inputs/split-dwarf-multiple-cu.dwo
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/Inputs/split-dwarf-multiple-cu.dwo?rev=352003&view=auto
==============================================================================
Binary files llvm/trunk/test/DebugInfo/Inputs/split-dwarf-multiple-cu.dwo (original) and llvm/trunk/test/DebugInfo/Inputs/split-dwarf-multiple-cu.dwo (removed) differ
Removed: llvm/trunk/test/DebugInfo/Inputs/split-dwarf-multiple-cu.o
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/Inputs/split-dwarf-multiple-cu.o?rev=352003&view=auto
==============================================================================
Binary files llvm/trunk/test/DebugInfo/Inputs/split-dwarf-multiple-cu.o (original) and llvm/trunk/test/DebugInfo/Inputs/split-dwarf-multiple-cu.o (removed) differ
Removed: llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test?rev=352003&view=auto
==============================================================================
Binary file - no diff available.
Removed: llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test-nogmlt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test-nogmlt?rev=352003&view=auto
==============================================================================
Binary files llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test-nogmlt (original) and llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test-nogmlt (removed) differ
Removed: llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test.cc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test.cc?rev=352003&view=auto
==============================================================================
--- llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test.cc (original)
+++ llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test.cc (removed)
@@ -1,20 +0,0 @@
-void f1() {
-}
-
-inline __attribute__((always_inline)) void f2() {
- f1();
-}
-
-int main() {
- f2();
-}
-
-// Build instructions:
-// 1) clang++ -### -gsplit-dwarf split-dwarf-test.cc -o split-dwarf-test
-// 2) Replace the value "-fdebug-compilation-dir" flag to "Output"
-// (this is the temp directory used by lit).
-// 3) Manually run clang-cc1, objcopy and ld invocations.
-// 4) Copy the binary and .dwo file to the Inputs directory. Make sure the
-// .dwo file will be available for symbolizer (use test RUN-lines to copy
-// the .dwo file to a directory
-// <execution_directory>/<directory_provided_in_fdebug_compilation_dir>.
Removed: llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test.cpp?rev=352003&view=auto
==============================================================================
--- llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test.cpp (original)
+++ llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test.cpp (removed)
@@ -1,13 +0,0 @@
-void f1() {}
-__attribute__((always_inline)) inline void f2() {
- f1();
-}
-int main() {
- f2();
-}
-
-// $ clang++ split-dwarf-test.cpp -gsplit-dwarf -Xclang \
-// -fdebug-compilation-dir -Xclang . -o split-dwarf-test
-// $ clang++ split-dwarf-test.cpp -gsplit-dwarf -Xclang \
-// -fdebug-compilation-dir -Xclang . -fno-split-dwarf-inlining \
-// -o split-dwarf-test-nogmlt
Removed: llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test.dwo
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test.dwo?rev=352003&view=auto
==============================================================================
Binary file - no diff available.
Modified: llvm/trunk/test/DebugInfo/llvm-symbolizer.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/llvm-symbolizer.test?rev=352004&r1=352003&r2=352004&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/llvm-symbolizer.test (original)
+++ llvm/trunk/test/DebugInfo/llvm-symbolizer.test Wed Jan 23 17:19:17 2019
@@ -19,46 +19,14 @@ RUN: echo "\"%t/dwarfdump-test3.elf-x86-
RUN: echo "%p/Inputs/macho-universal 0x1f84" >> %t.input
RUN: echo "%p/Inputs/macho-universal:i386 0x1f67" >> %t.input
RUN: echo "%p/Inputs/macho-universal:x86_64 0x100000f05" >> %t.input
-RUN: echo "%p/Inputs/llvm-symbolizer-dwo-test 0x400514" >> %t.input
RUN: echo "%p/Inputs/llvm-symbolizer-local-mem-func-gcc.elf-x86-64 0x61a" >> %t.input
-RUN: echo "%p/Inputs/fission-ranges.elf-x86_64 0x720" >> %t.input
RUN: echo "%p/Inputs/arange-overlap.elf-x86_64 0x714" >> %t.input
-RUN: cp %p/Inputs/split-dwarf-test.dwo %t
-RUN: echo "%p/Inputs/split-dwarf-test 0x400504" >> %t.input
-RUN: echo "%p/Inputs/split-dwarf-test 0x4004f4" >> %t.input
RUN: echo "%p/Inputs/cross-cu-inlining.x86_64-macho.o 0x17" >> %t.input
-RUN: cp %p/Inputs/split-dwarf-multiple-cu.dwo %t
-RUN: echo "%p/Inputs/split-dwarf-multiple-cu.o 0x4" >> %t.input
-RUN: cp %p/Inputs/split-dwarf-addr-object-relocation.dwo %t
-RUN: echo "%p/Inputs/split-dwarf-addr-object-relocation.o 0x14" >> %t.input
-RUN: cp %p/Inputs/split-dwarf-dwp.o %t
-RUN: cp %p/Inputs/split-dwarf-dwp.o.dwp %t
-RUN: echo "%t/split-dwarf-dwp.o 0x4" >> %t.input
RUN: cd %t
RUN: llvm-symbolizer --functions=linkage --inlining --demangle=false \
RUN: --default-arch=i386 < %t.input | FileCheck --check-prefix=CHECK --check-prefix=SPLIT --check-prefix=DWO %s
-Ensure we get the same results in the absence of gmlt-like data in the executable but the presence of a .dwo file
-
-RUN: echo "%p/Inputs/split-dwarf-test-nogmlt 0x400504" >> %t.input
-RUN: echo "%p/Inputs/split-dwarf-test-nogmlt 0x4004f4" >> %t.input
-RUN: llvm-symbolizer --functions=linkage --inlining --demangle=false \
-RUN: --default-arch=i386 < %t.input | FileCheck --check-prefix=SPLIT --check-prefix=DWO %s
-
-Ensure we get gmlt like results in the absence of a .dwo file but the presence of gmlt-like data in the executable
-
-RUN: rm %t/split-dwarf-test.dwo
-RUN: echo "%p/Inputs/split-dwarf-test 0x400504" >> %t.input
-RUN: echo "%p/Inputs/split-dwarf-test 0x4004f4" >> %t.input
-RUN: llvm-symbolizer --functions=linkage --inlining --demangle=false \
-RUN: --default-arch=i386 < %t.input | FileCheck --check-prefix=SPLIT --check-prefix=NODWO %s
-
-RUN: cp %p/Inputs/split-dwarf-dwp.o %t/split-dwarf-dwp-different-name.o
-RUN: echo "%t/split-dwarf-dwp-different-name.o 0x54" > %t.input
-RUN: llvm-symbolizer --functions=linkage --inlining --demangle=false \
-RUN: --default-arch=i386 --dwp=%p/Inputs/split-dwarf-dwp.o.dwp < %t.input | FileCheck --check-prefix=DWP %s
-
CHECK: main
CHECK-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test.cc:16
@@ -125,28 +93,13 @@ CHECK: main
CHECK: _Z3inci
CHECK: _Z3inci
-CHECK: main
-CHECK-NEXT: llvm-symbolizer-dwo-test.cc:11
-
CHECK-NOT: local_mem_func
CHECK: _ZZ2f1vEN3foo14local_mem_funcEv
CHECK-NEXT: {{.*}}local-mem-func.cpp:3:0
-CHECK: main
-CHECK-NEXT: {{.*}}fission-ranges.cc:6
-
CHECK: _ZN1S3bazEv
CHECK-NEXT: {{.*}}arange-overlap.cc:6
-DWO: _Z2f2v
-NODWO: {{^f2$}}
-SPLIT-NEXT: {{.*}}split-dwarf-test.cpp
-SPLIT-NEXT: main
-SPLIT-NEXT: {{.*}}split-dwarf-test.cpp
-
-SPLIT: _Z2f1v
-SPLIT-NEXT: {{.*}}split-dwarf-test.cpp
-
; func has been inlined into main by LTO. Check that the symbolizer is able
; to resolve the cross-cu reference and retrieve func's name
CHECK: func
@@ -154,21 +107,6 @@ CHECK-NEXT: /tmp{{[/\\]}}cross-cu-inlini
CHECK-NEXT: main
CHECK-NEXT: /tmp{{[/\\]}}cross-cu-inlining.c:11:0
-CHECK: f2
-CHECK-NEXT: split-dwarf-multiple-cu.cpp:3:3
-CHECK-NEXT: f3
-CHECK-NEXT: split-dwarf-multiple-cu.cpp:6:0
-
-CHECK: f2
-CHECK-NEXT: split-dwarf-addr-object-relocation.cpp:3:3
-CHECK-NEXT: f3
-CHECK-NEXT: split-dwarf-addr-object-relocation.cpp:6:0
-
-DWP: f2
-DWP-NEXT: split-dwarf-dwp.cpp:3:3
-DWP-NEXT: main
-DWP-NEXT: split-dwarf-dwp.cpp:10:0
-
RUN: echo "unexisting-file 0x1234" > %t.input2
RUN: llvm-symbolizer < %t.input2 2>&1 | FileCheck %s --check-prefix=MISSING-FILE
Copied: llvm/trunk/test/tools/llvm-symbolizer/Inputs/dwo-test (from r352003, llvm/trunk/test/DebugInfo/Inputs/llvm-symbolizer-dwo-test)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-symbolizer/Inputs/dwo-test?p2=llvm/trunk/test/tools/llvm-symbolizer/Inputs/dwo-test&p1=llvm/trunk/test/DebugInfo/Inputs/llvm-symbolizer-dwo-test&r1=352003&r2=352004&rev=352004&view=diff
==============================================================================
Binary files - no diff available.
Copied: llvm/trunk/test/tools/llvm-symbolizer/Inputs/fission-ranges.cc (from r352003, llvm/trunk/test/DebugInfo/Inputs/fission-ranges.cc)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-symbolizer/Inputs/fission-ranges.cc?p2=llvm/trunk/test/tools/llvm-symbolizer/Inputs/fission-ranges.cc&p1=llvm/trunk/test/DebugInfo/Inputs/fission-ranges.cc&r1=352003&r2=352004&rev=352004&view=diff
==============================================================================
(empty)
Copied: llvm/trunk/test/tools/llvm-symbolizer/Inputs/fission-ranges.elf-x86_64 (from r352003, llvm/trunk/test/DebugInfo/Inputs/fission-ranges.elf-x86_64)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-symbolizer/Inputs/fission-ranges.elf-x86_64?p2=llvm/trunk/test/tools/llvm-symbolizer/Inputs/fission-ranges.elf-x86_64&p1=llvm/trunk/test/DebugInfo/Inputs/fission-ranges.elf-x86_64&r1=352003&r2=352004&rev=352004&view=diff
==============================================================================
Binary files - no diff available.
Copied: llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-addr-object-relocation.cpp (from r352003, llvm/trunk/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.cpp)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-addr-object-relocation.cpp?p2=llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-addr-object-relocation.cpp&p1=llvm/trunk/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.cpp&r1=352003&r2=352004&rev=352004&view=diff
==============================================================================
(empty)
Copied: llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-addr-object-relocation.dwo (from r352003, llvm/trunk/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.dwo)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-addr-object-relocation.dwo?p2=llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-addr-object-relocation.dwo&p1=llvm/trunk/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.dwo&r1=352003&r2=352004&rev=352004&view=diff
==============================================================================
(empty)
Copied: llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-addr-object-relocation.o (from r352003, llvm/trunk/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.o)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-addr-object-relocation.o?p2=llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-addr-object-relocation.o&p1=llvm/trunk/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.o&r1=352003&r2=352004&rev=352004&view=diff
==============================================================================
(empty)
Copied: llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-dwp.cpp (from r352003, llvm/trunk/test/DebugInfo/Inputs/split-dwarf-dwp.cpp)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-dwp.cpp?p2=llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-dwp.cpp&p1=llvm/trunk/test/DebugInfo/Inputs/split-dwarf-dwp.cpp&r1=352003&r2=352004&rev=352004&view=diff
==============================================================================
(empty)
Copied: llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-dwp.o (from r352003, llvm/trunk/test/DebugInfo/Inputs/split-dwarf-dwp.o)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-dwp.o?p2=llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-dwp.o&p1=llvm/trunk/test/DebugInfo/Inputs/split-dwarf-dwp.o&r1=352003&r2=352004&rev=352004&view=diff
==============================================================================
(empty)
Copied: llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-dwp.o.dwp (from r352003, llvm/trunk/test/DebugInfo/Inputs/split-dwarf-dwp.o.dwp)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-dwp.o.dwp?p2=llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-dwp.o.dwp&p1=llvm/trunk/test/DebugInfo/Inputs/split-dwarf-dwp.o.dwp&r1=352003&r2=352004&rev=352004&view=diff
==============================================================================
(empty)
Copied: llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-multiple-cu.cpp (from r352003, llvm/trunk/test/DebugInfo/Inputs/split-dwarf-multiple-cu.cpp)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-multiple-cu.cpp?p2=llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-multiple-cu.cpp&p1=llvm/trunk/test/DebugInfo/Inputs/split-dwarf-multiple-cu.cpp&r1=352003&r2=352004&rev=352004&view=diff
==============================================================================
(empty)
Copied: llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-multiple-cu.dwo (from r352003, llvm/trunk/test/DebugInfo/Inputs/split-dwarf-multiple-cu.dwo)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-multiple-cu.dwo?p2=llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-multiple-cu.dwo&p1=llvm/trunk/test/DebugInfo/Inputs/split-dwarf-multiple-cu.dwo&r1=352003&r2=352004&rev=352004&view=diff
==============================================================================
(empty)
Copied: llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-multiple-cu.o (from r352003, llvm/trunk/test/DebugInfo/Inputs/split-dwarf-multiple-cu.o)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-multiple-cu.o?p2=llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-multiple-cu.o&p1=llvm/trunk/test/DebugInfo/Inputs/split-dwarf-multiple-cu.o&r1=352003&r2=352004&rev=352004&view=diff
==============================================================================
(empty)
Copied: llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-test (from r352003, llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-test?p2=llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-test&p1=llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test&r1=352003&r2=352004&rev=352004&view=diff
==============================================================================
Binary files - no diff available.
Copied: llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-test-nogmlt (from r352003, llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test-nogmlt)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-test-nogmlt?p2=llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-test-nogmlt&p1=llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test-nogmlt&r1=352003&r2=352004&rev=352004&view=diff
==============================================================================
(empty)
Copied: llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-test.cc (from r352003, llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test.cc)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-test.cc?p2=llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-test.cc&p1=llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test.cc&r1=352003&r2=352004&rev=352004&view=diff
==============================================================================
(empty)
Copied: llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-test.cpp (from r352003, llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test.cpp)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-test.cpp?p2=llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-test.cpp&p1=llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test.cpp&r1=352003&r2=352004&rev=352004&view=diff
==============================================================================
(empty)
Copied: llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-test.dwo (from r352003, llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test.dwo)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-test.dwo?p2=llvm/trunk/test/tools/llvm-symbolizer/Inputs/split-dwarf-test.dwo&p1=llvm/trunk/test/DebugInfo/Inputs/split-dwarf-test.dwo&r1=352003&r2=352004&rev=352004&view=diff
==============================================================================
Binary files - no diff available.
Added: llvm/trunk/test/tools/llvm-symbolizer/dwo.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-symbolizer/dwo.test?rev=352004&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-symbolizer/dwo.test (added)
+++ llvm/trunk/test/tools/llvm-symbolizer/dwo.test Wed Jan 23 17:19:17 2019
@@ -0,0 +1,4 @@
+RUN: llvm-symbolizer --obj=%p/Inputs/dwo-test 0x400514 | FileCheck %s
+
+CHECK: main
+CHECK-NEXT: llvm-symbolizer-dwo-test.cc:11
Added: llvm/trunk/test/tools/llvm-symbolizer/fission-ranges.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-symbolizer/fission-ranges.test?rev=352004&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-symbolizer/fission-ranges.test (added)
+++ llvm/trunk/test/tools/llvm-symbolizer/fission-ranges.test Wed Jan 23 17:19:17 2019
@@ -0,0 +1,4 @@
+RUN: llvm-symbolizer --obj=%p/Inputs/fission-ranges.elf-x86_64 0x720 | FileCheck %s
+
+CHECK: main
+CHECK-NEXT: {{.*}}fission-ranges.cc:6
Modified: llvm/trunk/test/tools/llvm-symbolizer/split-debug.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-symbolizer/split-debug.test?rev=352004&r1=352003&r2=352004&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-symbolizer/split-debug.test (original)
+++ llvm/trunk/test/tools/llvm-symbolizer/split-debug.test Wed Jan 23 17:19:17 2019
@@ -20,7 +20,7 @@
RUN: mkdir -p %t/.debug
RUN: llvm-objcopy --keep-section=.debug_info %p/Inputs/addr.exe %t/.debug/addr
RUN: llvm-objcopy --strip-debug --add-gnu-debuglink=%t/.debug/addr %p/Inputs/addr.exe %t/addr.exe
-RUN: llvm-symbolizer -print-address -obj=%t/addr.exe < %p/Inputs/addr.inp | FileCheck %s
+RUN: llvm-symbolizer -print-address -obj=%t/addr.exe 0x40054d | FileCheck %s
#CHECK: 0x40054d
#CHECK: {{[/\]+}}tmp{{[/\]+}}x.c:14:0
Added: llvm/trunk/test/tools/llvm-symbolizer/split-dwarf-addr-object-relocation.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-symbolizer/split-dwarf-addr-object-relocation.test?rev=352004&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-symbolizer/split-dwarf-addr-object-relocation.test (added)
+++ llvm/trunk/test/tools/llvm-symbolizer/split-dwarf-addr-object-relocation.test Wed Jan 23 17:19:17 2019
@@ -0,0 +1,11 @@
+RUN: rm -rf %t
+RUN: mkdir -p %t
+RUN: cp %p/Inputs/split-dwarf-addr-object-relocation.dwo %t
+
+RUN: cd %t
+RUN: llvm-symbolizer --obj=%p/Inputs/split-dwarf-addr-object-relocation.o 0x14 | FileCheck %s
+
+CHECK: f2
+CHECK-NEXT: split-dwarf-addr-object-relocation.cpp:3:3
+CHECK-NEXT: f3
+CHECK-NEXT: split-dwarf-addr-object-relocation.cpp:6:0
Added: llvm/trunk/test/tools/llvm-symbolizer/split-dwarf-dwp.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-symbolizer/split-dwarf-dwp.test?rev=352004&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-symbolizer/split-dwarf-dwp.test (added)
+++ llvm/trunk/test/tools/llvm-symbolizer/split-dwarf-dwp.test Wed Jan 23 17:19:17 2019
@@ -0,0 +1,12 @@
+RUN: rm -rf %t
+RUN: mkdir -p %t
+
+RUN: cp %p/Inputs/split-dwarf-dwp.o %t/split-dwarf-dwp-different-name.o
+
+RUN: llvm-symbolizer --dwp=%p/Inputs/split-dwarf-dwp.o.dwp \
+RUN: --obj=%t/split-dwarf-dwp-different-name.o 0x54 | FileCheck %s
+
+CHECK: f2
+CHECK-NEXT: split-dwarf-dwp.cpp:3:3
+CHECK-NEXT: main
+CHECK-NEXT: split-dwarf-dwp.cpp:10:0
Added: llvm/trunk/test/tools/llvm-symbolizer/split-dwarf-multiple-cu.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-symbolizer/split-dwarf-multiple-cu.test?rev=352004&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-symbolizer/split-dwarf-multiple-cu.test (added)
+++ llvm/trunk/test/tools/llvm-symbolizer/split-dwarf-multiple-cu.test Wed Jan 23 17:19:17 2019
@@ -0,0 +1,12 @@
+RUN: rm -rf %t
+RUN: mkdir -p %t
+RUN: cp %p/Inputs/split-dwarf-multiple-cu.dwo %t
+
+RUN: cd %t
+RUN: llvm-symbolizer --obj=%p/Inputs/split-dwarf-multiple-cu.o 0x4 | FileCheck %s
+
+CHECK: f2
+CHECK-NEXT: split-dwarf-multiple-cu.cpp:3:3
+CHECK-NEXT: f3
+CHECK-NEXT: split-dwarf-multiple-cu.cpp:6:0
+
Added: llvm/trunk/test/tools/llvm-symbolizer/split-dwarf.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-symbolizer/split-dwarf.test?rev=352004&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-symbolizer/split-dwarf.test (added)
+++ llvm/trunk/test/tools/llvm-symbolizer/split-dwarf.test Wed Jan 23 17:19:17 2019
@@ -0,0 +1,32 @@
+RUN: rm -rf %t
+RUN: mkdir -p %t
+
+RUN: cp %p/Inputs/split-dwarf-test.dwo %t
+
+RUN: cd %t
+RUN: llvm-symbolizer --functions=linkage --inlining --demangle=false \
+RUN: --obj=%p/Inputs/split-dwarf-test 0x400504 0x4004f4 | FileCheck --check-prefix=CHECK --check-prefix=SPLIT --check-prefix=DWO %s
+
+Ensure we get the same results in the absence of gmlt-like data in the executable but the presence of a .dwo file
+
+RUN: echo "%p/Inputs/split-dwarf-test-nogmlt 0x400504" >> %t.input
+RUN: echo "%p/Inputs/split-dwarf-test-nogmlt 0x4004f4" >> %t.input
+RUN: llvm-symbolizer --functions=linkage --inlining --demangle=false \
+RUN: --default-arch=i386 --obj=%p/Inputs/split-dwarf-test-nogmlt 0x400504 0x4004f4 | FileCheck --check-prefix=SPLIT --check-prefix=DWO %s
+
+Ensure we get gmlt like results in the absence of a .dwo file but the presence of gmlt-like data in the executable
+
+RUN: rm %t/split-dwarf-test.dwo
+RUN: echo "%p/Inputs/split-dwarf-test 0x400504" >> %t.input
+RUN: echo "%p/Inputs/split-dwarf-test 0x4004f4" >> %t.input
+RUN: llvm-symbolizer --functions=linkage --inlining --demangle=false \
+RUN: --default-arch=i386 --obj=%p/Inputs/split-dwarf-test 0x400504 0x4004f4 | FileCheck --check-prefix=SPLIT --check-prefix=NODWO %s
+
+DWO: _Z2f2v
+NODWO: {{^f2$}}
+SPLIT-NEXT: {{.*}}split-dwarf-test.cpp
+SPLIT-NEXT: main
+SPLIT-NEXT: {{.*}}split-dwarf-test.cpp
+
+SPLIT: _Z2f1v
+SPLIT-NEXT: {{.*}}split-dwarf-test.cpp
More information about the llvm-commits
mailing list