llvm-objdump: Fix crash bug with printing unwind info on stripped file.
authorRui Ueyama <ruiu@google.com>
Fri, 28 Feb 2014 05:21:29 +0000 (05:21 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 28 Feb 2014 05:21:29 +0000 (05:21 +0000)
commit49c76560f31772bb6518c7e94549e44a19c25a7e
treef6dae90a0f4d706da3417ba3586e04ffb0020dd2
parent6738a1ba7a2843ce6602f9be21c819873fd33841
llvm-objdump: Fix crash bug with printing unwind info on stripped file.

The current COFF unwind printer tries to print SEH handler function names,
assuming that it can always find function names in string table. It crashes
if file being read has no symbol table (i.e. executable).

With this patch, llvm-objdump prints SEH handler's RVA if there's no symbol
table entry for that RVA.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202466 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-objdump/COFFDump.cpp