[llvm-symbolizer] Use the export table if no symbols are present
authorReid Kleckner <rnk@google.com>
Fri, 16 Oct 2015 23:43:22 +0000 (23:43 +0000)
committerReid Kleckner <rnk@google.com>
Fri, 16 Oct 2015 23:43:22 +0000 (23:43 +0000)
commitdd65b7a9f542ec5588abff7ffa47b8653fa53fea
treee8fa140ba7476f0a8dabf406733d975083024472
parent95dcdb985ba2e622bbf34b5023f3f732ec1f9bb7
[llvm-symbolizer] Use the export table if no symbols are present

This lets us make guesses about symbols in third party DLLs without
debug info, like MSVCR120.dll or kernel32.dll. dbghelp does the same
thing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250582 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-symbolizer/Inputs/coff-dwarf.cpp
test/tools/llvm-symbolizer/Inputs/coff-exports.cpp [new file with mode: 0644]
test/tools/llvm-symbolizer/Inputs/coff-exports.exe [new file with mode: 0644]
test/tools/llvm-symbolizer/coff-exports.test [new file with mode: 0644]
tools/llvm-symbolizer/LLVMSymbolize.cpp
tools/llvm-symbolizer/LLVMSymbolize.h