1 # RUN: llvm-mc %s -filetype obj -triple=i686-pc-linux -o %t
2 # RUN: not llvm-dwarfdump -v -verify %t 2>&1 | FileCheck %s
3 # CHECK: The length for this unit is too large for the .debug_info provided.
5 ## Check we do not crash when trying to parse truncated .debug_info.
6 .section .debug_info,"",@progbits
12 .uleb128 0x1 # DW_TAG_compile_unit [1] *
13 .long 0 # DW_AT_producer [DW_FORM_strp] ( .debug_str[0x00000000] = "test")
14 .byte 0x4 # DW_AT_language [DW_FORM_data1] (DW_LANG_C_plus_plus)
15 .long 0 # DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000000] = "test")
16 .long 0 # DW_AT_comp_dir [DW_FORM_strp] ( .debug_str[0x00000000] = "test")
17 .long 0 # DW_AT_low_pc [DW_FORM_addr] (0x0000000000000000 ".text")
18 .long 0 # DW_AT_high_pc [DW_FORM_data4] (0x00000000)
20 .section .debug_abbrev,"",@progbits
23 .uleb128 0x11 # DW_TAG_compile_unit, DW_CHILDREN_yes
25 .uleb128 0x25 # DW_AT_producer, DW_FORM_strp
27 .uleb128 0x13 # DW_AT_language, DW_FORM_data1
29 .uleb128 0x3 # DW_AT_name, DW_FORM_strp
31 .uleb128 0x1b # DW_AT_comp_dir, DW_FORM_strp
33 .uleb128 0x11 # DW_AT_low_pc, DW_FORM_addr
35 .uleb128 0x12 # DW_AT_high_pc, DW_FORM_data4
41 .section .debug_str,"MS",@progbits,1