brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.0 KiB · 7021020 Raw
87 lines · plain
1# this checks llvm-dwp handling of DWARFv5 Info section header.2 3# RUN: llvm-mc --triple=x86_64-unknown-linux --filetype=obj --split-dwarf-file=%t.dwo -dwarf-version=5 %s -o %t.o4 5# RUN: llvm-dwp %t.dwo -o %t.dwp6# RUN: llvm-dwarfdump -v %t.dwp | FileCheck %s7 8#CHECK-DAG: .debug_info.dwo contents:9#CHECK: 0x00000000: Compile Unit: length = 0x00000050, format = DWARF32, version = 0x0005, unit_type = DW_UT_split_compile, abbr_offset = 0x0000, addr_size = 0x08, DWO_id = [[DWOID:.*]] (next unit at 0x00000054)10 11# CHECK-DAG: .debug_cu_index contents:12# CHECK: version = 5, units = 1, slots = 213# CHECK: Index Signature          INFO                        ABBREV14# CHECK: 1 [[DWOID]] [0x0000000000000000, 0x0000000000000054) [0x00000000, 0x0000002a)15 16	.section	.debug_info.dwo,"e",@progbits17	.long	.Ldebug_info_dwo_end0-.Ldebug_info_dwo_start0 # Length of Unit18.Ldebug_info_dwo_start0:19	.short	5                      # DWARF version number20	.byte	5                       # DWARF Unit Type21	.byte	8                       # Address Size (in bytes)22	.long	0                       # Offset Into Abbrev. Section23	.quad	-117335028515917209024	.byte	1                       # Abbrev [1] 0x14:0x16 DW_TAG_compile_unit25	.asciz  "clang version 11.0.0" # DW_AT_producer26	.short	12                     # DW_AT_language27	.asciz  "int.c"                # DW_AT_name28	.asciz  "int.dwo"              # DW_AT_dwo_name29	.byte	2                       # Abbrev [2] 0x1a:0xb DW_TAG_variable30	.asciz  "integer"              # DW_AT_name31	.long	37                      # DW_AT_type32                                        # DW_AT_external33	.byte	0                       # DW_AT_decl_file34	.byte	1                       # DW_AT_decl_line35	.byte	2                       # DW_AT_location36	.byte	16137	.byte	038	.byte	3                       # Abbrev [3] 0x25:0x4 DW_TAG_base_type39	.asciz  "int"                  # DW_AT_name40	.byte	5                       # DW_AT_encoding41	.byte	4                       # DW_AT_byte_size42	.byte	0                       # End Of Children Mark43.Ldebug_info_dwo_end0:44	.section	.debug_abbrev.dwo,"e",@progbits45	.byte	1                       # Abbreviation Code46	.byte	17                      # DW_TAG_compile_unit47	.byte	1                       # DW_CHILDREN_yes48	.byte	37                      # DW_AT_producer49	.byte	8                       # DW_FORM_string50	.byte	19                      # DW_AT_language51	.byte	5                       # DW_FORM_data252	.byte	3                       # DW_AT_name53	.byte	8                       # DW_FORM_string54	.byte	118                     # DW_AT_dwo_name55	.byte	8                       # DW_FORM_string56	.byte	0                       # EOM(1)57	.byte	0                       # EOM(2)58	.byte	2                       # Abbreviation Code59	.byte	52                      # DW_TAG_variable60	.byte	0                       # DW_CHILDREN_no61	.byte	3                       # DW_AT_name62	.byte	8                       # DW_FORM_string63	.byte	73                      # DW_AT_type64	.byte	19                      # DW_FORM_ref465	.byte	63                      # DW_AT_external66	.byte	25                      # DW_FORM_flag_present67	.byte	58                      # DW_AT_decl_file68	.byte	11                      # DW_FORM_data169	.byte	59                      # DW_AT_decl_line70	.byte	11                      # DW_FORM_data171	.byte	2                       # DW_AT_location72	.byte	24                      # DW_FORM_exprloc73	.byte	0                       # EOM(1)74	.byte	0                       # EOM(2)75	.byte	3                       # Abbreviation Code76	.byte	36                      # DW_TAG_base_type77	.byte	0                       # DW_CHILDREN_no78	.byte	3                       # DW_AT_name79	.byte	8                       # DW_FORM_string80	.byte	62                      # DW_AT_encoding81	.byte	11                      # DW_FORM_data182	.byte	11                      # DW_AT_byte_size83	.byte	11                      # DW_FORM_data184	.byte	0                       # EOM(1)85	.byte	0                       # EOM(2)86	.byte	0                       # EOM(3)87