OSDN Git Service

DebugInfo: Provide option for explicitly specifying the name of the DWP file
authorDavid Blaikie <dblaikie@gmail.com>
Sun, 30 Jul 2017 01:34:08 +0000 (01:34 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sun, 30 Jul 2017 01:34:08 +0000 (01:34 +0000)
commit4cf772e1b717ac2c7e0f42fa47b6c45b4b5c1b68
tree17137b5a1d51c440346928eaccf6fc50e6e897d1
parent2567d81a0606409c9eeb2e3cc3624effe8adaa5e
DebugInfo: Provide option for explicitly specifying the name of the DWP file

If you've archived the DWP file somewhere it's probably useful to be
able to just tell llvm-symbolizer where it is when you're symbolizing
stack traces from the binary.

This only provides a mechanism for specifying a single DWP file, good if
you're symbolizing a program with a single DWP file, but it's likely if
the program is dynamically linked that you might have a DWP for each
dynamic library - in which case this feature won't help (at least as
it's surfaced in llvm-symbolizer for now) - in theory it could be
extended to specify a collection of DWP files that could all be
consulted for split CU hash resolution.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309498 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/DWARF/DWARFContext.h
include/llvm/DebugInfo/Symbolize/Symbolize.h
lib/DebugInfo/DWARF/DWARFContext.cpp
lib/DebugInfo/Symbolize/Symbolize.cpp
test/DebugInfo/llvm-symbolizer.test
tools/llvm-symbolizer/llvm-symbolizer.cpp