Add support for fetching inlining context (stack of source code locations)
authorAlexey Samsonov <samsonov@google.com>
Tue, 4 Sep 2012 08:12:33 +0000 (08:12 +0000)
committerAlexey Samsonov <samsonov@google.com>
Tue, 4 Sep 2012 08:12:33 +0000 (08:12 +0000)
commit5eae90d727c64ca5b4b43b110521b38dcd9f0de6
treeb932b5a23ada1047a06817c055c1e97a469f39a9
parent2d5c28da0d14883cd0cd6fcf38d7e28040b634c0
Add support for fetching inlining context (stack of source code locations)
by instruction address from DWARF.

Add --inlining flag to llvm-dwarfdump to demonstrate and test this functionality,
so that "llvm-dwarfdump --inlining --address=0x..." now works much like
"addr2line -i 0x...", provided that the binary has debug info
(Clang's -gline-tables-only *is* enough).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163128 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/llvm/DebugInfo/DIContext.h
lib/DebugInfo/DWARFCompileUnit.cpp
lib/DebugInfo/DWARFCompileUnit.h
lib/DebugInfo/DWARFContext.cpp
lib/DebugInfo/DWARFContext.h
lib/DebugInfo/DWARFDebugInfoEntry.cpp
lib/DebugInfo/DWARFDebugInfoEntry.h
lib/DebugInfo/DWARFDebugRangeList.cpp
lib/DebugInfo/DWARFDebugRangeList.h
test/DebugInfo/Inputs/dwarfdump-inl-test.elf-x86-64 [new file with mode: 0755]
test/DebugInfo/dwarfdump-inlining.test [new file with mode: 0644]
tools/llvm-dwarfdump/llvm-dwarfdump.cpp