| 1 |
# RUN: llvm-mc %s -filetype obj -triple x86_64-apple-darwin -o - \ |
| 2 |
# RUN: | not llvm-dwarfdump --verify --debug-info - \ |
| 3 |
# RUN: | FileCheck %s |
| 4 |
# CHECK: error: unable to decode LEB128 at offset 0x00000005: malformed uleb128, extends past end |
| 5 |
# CHECK: error: Compilation unit without DIE. |
| 6 |
|
| 7 |
.section __DWARF,__debug_info,regular,debug |
| 8 |
.long 8 # CU length |
| 9 |
.short 3 # Version |
| 10 |
.long 0 # Abbrev offset |
| 11 |
.byte 4 # AddrSize |
| 12 |
.byte 1 # Abbrev 1 |
| 13 |
.long 7 # Unit lengthh... |
| 14 |
.short 3 |
| 15 |
.long 0 |
| 16 |
.byte 4 |
| 17 |
.section __DWARF,__debug_abbrev,regular,debug |
| 18 |
.byte 1 # Abbrev code |
| 19 |
.byte 0x11 # TAG_compile_unit |
| 20 |
.byte 0 # no children |
| 21 |
.byte 0 # EOM(1) |
| 22 |
.byte 0 # EOM(2) |
| 23 |
# Intentionally missing EOM(3) |