43 lines · plain
1# RUN: llvm-mc %s -filetype obj -triple=i686-pc-linux -o %t2# RUN: not llvm-dwarfdump -v -verify %t 2>&1 | FileCheck %s3# CHECK: The length for this unit is too large for the .debug_info provided.4 5## Check we do not crash when trying to parse truncated .debug_info.6.section .debug_info,"",@progbits7 .long 0x1c8 .value 0x49 .long .Ldebug_abbrev010 .byte 0x411 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)19 20.section .debug_abbrev,"",@progbits21.Ldebug_abbrev0:22 .uleb128 0x123 .uleb128 0x11 # DW_TAG_compile_unit, DW_CHILDREN_yes24 .byte 0x125 .uleb128 0x25 # DW_AT_producer, DW_FORM_strp26 .uleb128 0xe27 .uleb128 0x13 # DW_AT_language, DW_FORM_data128 .uleb128 0xb29 .uleb128 0x3 # DW_AT_name, DW_FORM_strp30 .uleb128 0xe31 .uleb128 0x1b # DW_AT_comp_dir, DW_FORM_strp32 .uleb128 0xe33 .uleb128 0x11 # DW_AT_low_pc, DW_FORM_addr34 .uleb128 0x135 .uleb128 0x12 # DW_AT_high_pc, DW_FORM_data436 .uleb128 0x637 .byte 038 .byte 039 .byte 040 41.section .debug_str,"MS",@progbits,142.string "test"43