diff options
| author | Tim Northover <tnorthover@apple.com> | 2016-11-15 20:26:01 +0000 |
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2016-11-15 20:26:01 +0000 |
| commit | bf55f7ea59c110df5d62d1c9b3866d374f5a86d0 (patch) | |
| tree | d4a65b1bacdfb447194f6f42d2a0ac18af6a7b56 /llvm/test/tools | |
| parent | d4bb5e483118cfa2634a21689afa217134d98eab (diff) | |
| download | bcm5719-llvm-bf55f7ea59c110df5d62d1c9b3866d374f5a86d0.tar.gz bcm5719-llvm-bf55f7ea59c110df5d62d1c9b3866d374f5a86d0.zip | |
llvm-objdump: deal with unexpected object files more gracefully.
Specifically, we don't want to segfault on release builds, so print the problem
instead.
llvm-svn: 287022
Diffstat (limited to 'llvm/test/tools')
| -rwxr-xr-x | llvm/test/tools/llvm-objdump/Inputs/malformed-unwind.macho-x86_64 | bin | 0 -> 8704 bytes | |||
| -rw-r--r-- | llvm/test/tools/llvm-objdump/malformed-unwind-x86_64.test | 5 |
2 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/Inputs/malformed-unwind.macho-x86_64 b/llvm/test/tools/llvm-objdump/Inputs/malformed-unwind.macho-x86_64 Binary files differnew file mode 100755 index 00000000000..c4cbe2a1c3e --- /dev/null +++ b/llvm/test/tools/llvm-objdump/Inputs/malformed-unwind.macho-x86_64 diff --git a/llvm/test/tools/llvm-objdump/malformed-unwind-x86_64.test b/llvm/test/tools/llvm-objdump/malformed-unwind-x86_64.test new file mode 100644 index 00000000000..26984a3485e --- /dev/null +++ b/llvm/test/tools/llvm-objdump/malformed-unwind-x86_64.test @@ -0,0 +1,5 @@ +# RUN: llvm-objdump -unwind-info %p/Inputs/malformed-unwind.macho-x86_64 | FileCheck %s + +# CHECK: Contents of __unwind_info section: +# [...] +# CHECK: Skipping 2nd level page with unknown kind 4 |

