brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · d167e05 Raw
46 lines · plain
1# Test that we don't crash when parsing slightly invalid DWARF.  The compile2# unit in this file sets DW_CHILDREN_no, but it still includes an3# end-of-children marker in its contribution.4 5# RUN: llvm-mc -triple x86_64-pc-linux %s -filetype=obj > %t.o6# RUN: lldb-test symbols %t.o7 8	.section	.debug_str,"MS",@progbits,19.Linfo_string0:10	.asciz	"Hand-written DWARF"11.Linfo_string1:12	.asciz	"-"13.Linfo_string2:14	.asciz	"/tmp"15 16	.section	.debug_abbrev,"",@progbits17	.byte	1                       # Abbreviation Code18	.byte	17                      # DW_TAG_compile_unit19	.byte	0                       # DW_CHILDREN_no20	.byte	37                      # DW_AT_producer21	.byte	14                      # DW_FORM_strp22	.byte	19                      # DW_AT_language23	.byte	5                       # DW_FORM_data224	.byte	3                       # DW_AT_name25	.byte	14                      # DW_FORM_strp26	.byte	27                      # DW_AT_comp_dir27	.byte	14                      # DW_FORM_strp28	.byte	0                       # EOM(1)29	.byte	0                       # EOM(2)30	.byte	0                       # EOM(3)31 32	.section	.debug_info,"",@progbits33.Lcu_begin0:34	.long	.Lcu_length_end-.Lcu_length_start # Length of Unit35.Lcu_length_start:36	.short	4                       # DWARF version number37	.long	.debug_abbrev           # Offset Into Abbrev. Section38	.byte	8                       # Address Size (in bytes)39	.byte	1                       # Abbrev [1] 0xb:0x30 DW_TAG_compile_unit40	.long	.Linfo_string0          # DW_AT_producer41	.short	12                      # DW_AT_language42	.long	.Linfo_string1          # DW_AT_name43	.long	.Linfo_string2          # DW_AT_comp_dir44	.byte	0                       # Bogus End Of Children Mark45.Lcu_length_end:46