[llvm] r324702 - DebugInfo/llvm-symbolizer: Test symbolizing Split DWARF without addresses in the skeleton CU

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 8 19:34:33 PST 2018


Author: dblaikie
Date: Thu Feb  8 19:34:32 2018
New Revision: 324702

URL: http://llvm.org/viewvc/llvm-project?rev=324702&view=rev
Log:
DebugInfo/llvm-symbolizer: Test symbolizing Split DWARF without addresses in the skeleton CU

Identified in an llvm-dev discussion around
DWARFUnit::collectAddressRanges

Added:
    llvm/trunk/test/DebugInfo/Inputs/split-dwarf-no-skel-address.dwo
    llvm/trunk/test/DebugInfo/Inputs/split-dwarf-no-skel-address.o
    llvm/trunk/test/DebugInfo/llvm-symbolizer-split-dwarf-no-skel-address.test

Added: llvm/trunk/test/DebugInfo/Inputs/split-dwarf-no-skel-address.dwo
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/Inputs/split-dwarf-no-skel-address.dwo?rev=324702&view=auto
==============================================================================
Binary files llvm/trunk/test/DebugInfo/Inputs/split-dwarf-no-skel-address.dwo (added) and llvm/trunk/test/DebugInfo/Inputs/split-dwarf-no-skel-address.dwo Thu Feb  8 19:34:32 2018 differ

Added: llvm/trunk/test/DebugInfo/Inputs/split-dwarf-no-skel-address.o
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/Inputs/split-dwarf-no-skel-address.o?rev=324702&view=auto
==============================================================================
Binary files llvm/trunk/test/DebugInfo/Inputs/split-dwarf-no-skel-address.o (added) and llvm/trunk/test/DebugInfo/Inputs/split-dwarf-no-skel-address.o Thu Feb  8 19:34:32 2018 differ

Added: llvm/trunk/test/DebugInfo/llvm-symbolizer-split-dwarf-no-skel-address.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/llvm-symbolizer-split-dwarf-no-skel-address.test?rev=324702&view=auto
==============================================================================
--- llvm/trunk/test/DebugInfo/llvm-symbolizer-split-dwarf-no-skel-address.test (added)
+++ llvm/trunk/test/DebugInfo/llvm-symbolizer-split-dwarf-no-skel-address.test Thu Feb  8 19:34:32 2018
@@ -0,0 +1,20 @@
+REQUIRES: shell
+RUN: rm -rf %t && mkdir -p %t
+RUN: cd %t
+RUN: cp %p/Inputs/split-dwarf-no-skel-address.dwo %t
+RUN: echo "%p/Inputs/split-dwarf-no-skel-address.o 0x4" > %t.input
+
+RUN: llvm-symbolizer --functions=linkage --inlining --demangle=false \
+RUN:    --default-arch=i386 < %t.input | FileCheck %s
+
+Built from the following source:
+void f1();
+__attribute__((always_inline)) inline void f2() { f1(); }
+void f3() { f2(); }
+
+Compiled to assembly with clang, modified the skeleton CU to remove the
+high/low pc (& update the CU length field and abbrev to match) & then
+compile/objcopy to make the .o and .dwo.
+
+CHECK: _Z2f2v
+CHECK: ./test.cpp:2:51




More information about the llvm-commits mailing list