summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2016-11-15 20:26:01 +0000
committerTim Northover <tnorthover@apple.com>2016-11-15 20:26:01 +0000
commitbf55f7ea59c110df5d62d1c9b3866d374f5a86d0 (patch)
treed4a65b1bacdfb447194f6f42d2a0ac18af6a7b56 /llvm/test/tools
parentd4bb5e483118cfa2634a21689afa217134d98eab (diff)
downloadbcm5719-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-xllvm/test/tools/llvm-objdump/Inputs/malformed-unwind.macho-x86_64bin0 -> 8704 bytes
-rw-r--r--llvm/test/tools/llvm-objdump/malformed-unwind-x86_64.test5
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
new file mode 100755
index 00000000000..c4cbe2a1c3e
--- /dev/null
+++ b/llvm/test/tools/llvm-objdump/Inputs/malformed-unwind.macho-x86_64
Binary files differ
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
OpenPOWER on IntegriCloud