llvm-6502/test/DebugInfo/Inputs/llvm-symbolizer-dwo-test.cc
Alexey Samsonov e0d2d7fb26 [llvm-symbolizer] Print file/line for a PC even if there is no DIE describing it.
This is important for symbolizing executables with debug info in
unavailable .dwo files. Even if all DIE entries are missing, we can
still symbolize an address: function name can be fetched from symbol table,
and file/line info can be fetched from line table.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206665 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-18 22:22:44 +00:00

19 lines
290 B
C++

int f(int a, int b) {
return a + b;
}
int g(int a) {
return a + 1;
}
int main() {
return f(2, g(2));
}
// Built with Clang 3.5.0:
// $ mkdir -p /tmp/dbginfo
// $ cp llvm-symbolizer-dwo-test.cc /tmp/dbginfo
// $ cd /tmp/dbginfo
// $ clang -gsplit-dwarf llvm-symbolizer-dwo-test.cc