brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.8 KiB · 3987671 Raw
80 lines · plain
1# This test checks if we can correctly parse manull cu and tu index for DWARF4.2 3# RUN: llvm-mc -triple x86_64-unknown-linux %s -filetype=obj -o %t.o \4# RUN:         -split-dwarf-file=%t.dwo -dwarf-version=45# RUN: llvm-dwp %t.dwo -o %t.dwp6# RUN: llvm-dwarfdump -debug-info -debug-types -debug-cu-index -debug-tu-index %t.dwp | FileCheck %s7# RUN: llvm-dwarfdump -debug-info -debug-types -debug-cu-index -debug-tu-index -manually-generate-unit-index %t.dwp | FileCheck %s8 9## Note: In order to check whether the type unit index is generated10## there is no need to add the missing DIEs for the structure type of the type unit.11 12# CHECK-DAG: .debug_info.dwo contents:13# CHECK: 0x00000000: Compile Unit: length = 0x00000010, format = DWARF32, version = 0x0004, abbr_offset = 0x0000, addr_size = 0x08 (next unit at 0x00000014)14# CHECK:  DW_AT_GNU_dwo_id  ([[CUID1:.*]])15# CHECK-DAG: .debug_types.dwo contents:16# CHECK: 0x00000000: Type Unit: length = 0x00000016, format = DWARF32, version = 0x0004, abbr_offset = 0x0000, addr_size = 0x08, name = '', type_signature = [[TUID1:.*]], type_offset = 0x0019 (next unit at 0x0000001a)17# CHECK: 0x0000001a: Type Unit: length = 0x00000016, format = DWARF32, version = 0x0004, abbr_offset = 0x0000, addr_size = 0x08, name = '', type_signature = [[TUID2:.*]], type_offset = 0x0019 (next unit at 0x00000034)18# CHECK-DAG: .debug_cu_index contents:19# CHECK: version = 2, units = 1, slots = 220# CHECK: Index Signature          INFO                                     ABBREV21# CHECK:     2 [[CUID1]]          [0x0000000000000000, 0x0000000000000014) [0x00000000, 0x00000013)22# CHECK-DAG: .debug_tu_index contents:23# CHECK: version = 2, units = 2, slots = 424# CHECK: Index Signature          TYPES                                    ABBREV25# CHECK:     1 [[TUID1]]          [0x0000000000000000, 0x000000000000001a) [0x00000000, 0x00000013)26# CHECK:     4 [[TUID2]]          [0x000000000000001a, 0x0000000000000034) [0x00000000, 0x00000013)27 28    .section	.debug_types.dwo,"e",@progbits29    .long	.Ldebug_info_dwo_end0-.Ldebug_info_dwo_start0 # Length of Unit30.Ldebug_info_dwo_start0:31    .short	4                               # DWARF version number32    .long	0                               # Offset Into Abbrev. Section33    .byte	8                               # Address Size (in bytes)34    .quad	5657452045627120676             # Type Signature35    .long	25                              # Type DIE Offset36    .byte	2                               # Abbrev [2] DW_TAG_type_unit37    .byte	3                               # Abbrev [3] DW_TAG_structure_type38    .byte	0                               # End Of Children Mark39.Ldebug_info_dwo_end0:40    .section	.debug_types.dwo,"e",@progbits41    .long	.Ldebug_info_dwo_end1-.Ldebug_info_dwo_start1 # Length of Unit42.Ldebug_info_dwo_start1:43    .short	4                               # DWARF version number44    .long	0                               # Offset Into Abbrev. Section45    .byte	8                               # Address Size (in bytes)46    .quad	-8528522068957683993            # Type Signature47    .long	25                              # Type DIE Offset48    .byte	2                               # Abbrev [2] DW_TAG_type_unit49    .byte	3                               # Abbrev [3] DW_TAG_structure_type50    .byte	0                               # End Of Children Mark51.Ldebug_info_dwo_end1:52    .section	.debug_info.dwo,"e",@progbits53    .long	.Ldebug_info_dwo_end2-.Ldebug_info_dwo_start2 # Length of Unit54.Ldebug_info_dwo_start2:55    .short	4                               # DWARF version number56    .long	0                               # Offset Into Abbrev. Section57    .byte	8                               # Address Size (in bytes)58    .byte	1                               # Abbrev [1] DW_TAG_compile_unit59    .quad	-6619898858003450627            # DW_AT_GNU_dwo_id60.Ldebug_info_dwo_end2:61    .section	.debug_abbrev.dwo,"e",@progbits62    .byte	1                               # Abbreviation Code63    .byte	17                              # DW_TAG_compile_unit64    .byte	0                               # DW_CHILDREN_no65    .ascii	"\261B"                         # DW_AT_GNU_dwo_id66    .byte	7                               # DW_FORM_data867    .byte	0                               # EOM(1)68    .byte	0                               # EOM(2)69    .byte	2                               # Abbreviation Code70    .byte	65                              # DW_TAG_type_unit71    .byte	1                               # DW_CHILDREN_yes72    .byte	0                               # EOM73    .byte	0                               # EOM74    .byte	3                               # Abbreviation Code75    .byte	0x13                            # DW_TAG_structure_unit76    .byte	0                               # DW_CHILDREN_no77    .byte	0                               # EOM78    .byte	0                               # EOM79    .byte	0                               # EOM80