brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.0 KiB · c649d1a Raw
108 lines · plain
1## The test checks that ranges for compile units in package files are read2## correctly, i.e. the base offset in the index section is taken into account.3 4# RUN: llvm-mc -triple x86_64-unknown-linux %s -filetype=obj -o - | \5# RUN:   llvm-dwarfdump -v -debug-info -debug-rnglists - | \6# RUN:   FileCheck %s7 8# CHECK:      .debug_info.dwo contents:9# CHECK:      Compile Unit:10# CHECK:      DW_TAG_compile_unit [1]11# CHECK-NEXT:   DW_AT_ranges [DW_FORM_rnglistx] (indexed (0x1) rangelist = 0x0000002212# CHECK-NEXT:     [0x00000005, 0x0000000f))13 14# CHECK:      .debug_rnglists.dwo contents:15# CHECK:      0x00000000: range list header:16# CHECK:      0x0000000d: range list header:17# CHECK-NEXT: offsets: [18# CHECK-NEXT: 0x00000008 => 0x0000002119# CHECK-NEXT: 0x00000009 => 0x0000002220# CHECK-NEXT: ]21# CHECK-NEXT: ranges:22# CHECK-NEXT: 0x00000021: [DW_RLE_end_of_list]23# CHECK-NEXT: 0x00000022: [DW_RLE_offset_pair]:  0x00000005, 0x0000000f => [0x00000005, 0x0000000f)24# CHECK-NEXT: 0x00000025: [DW_RLE_end_of_list]25 26    .section .debug_abbrev.dwo, "e", @progbits27.LAbbrev:28    .byte 0x01                          # Abbrev code29    .byte 0x11                          # DW_TAG_compile_unit30    .byte 0x00                          # DW_CHILDREN_no31    .byte 0x55                          # DW_AT_ranges32    .byte 0x23                          # DW_FORM_rnglistx33    .byte 0x00                          # EOM(1)34    .byte 0x00                          # EOM(2)35    .byte 0x00                          # EOM(3)36.LAbbrevEnd:37    38    .section .debug_info.dwo, "e", @progbits39.LCU:40    .long .LCUEnd-.LCUVersion           # Length41.LCUVersion:42    .short 5                            # Version43    .byte 5                             # DW_UT_split_compile44    .byte 4                             # Address Size (in bytes)45    .long 0                             # Offset Into Abbrev Section46    .quad 0x1100001122222222            # DWO id47    .uleb128 1                          # Abbrev [1] DW_TAG_compile_unit48    .uleb128 1                          # DW_AT_ranges (DW_FORM_rnglistx)49.LCUEnd:50 51    .section .debug_rnglists.dwo,"e",@progbits52.LRLT0:53    .long .LRLT0End-.LRLT0Version       # Length54.LRLT0Version:55    .short 556    .byte 457    .byte 058    .long 059.LRLT0List0:60    .byte 0                             # DW_RLE_end_of_list61.LRLT0End:62 63.LRLT1:64    .long .LRLT1End-.LRLT1Version65.LRLT1Version:66    .short 5                            # Version67    .byte 4                             # Address size68    .byte 0                             # Segment selector size69    .long 2                             # Offset entry count70.LRLT1Base:71    .long .LRLT1List0-.LRLT1Base72    .long .LRLT1List1-.LRLT1Base73.LRLT1List0:74    .byte 0                             # DW_RLE_end_of_list75.LRLT1List1:76    .byte 4                             # DW_RLE_offset_pair77    .uleb128 5                          # Starting offset78    .uleb128 15                         # Ending offset79    .byte 0                             # DW_RLE_end_of_list80.LRLT1End:81 82    .section .debug_cu_index, "", @progbits83## Header:84    .short 5                            # Version85    .space 2                            # Padding86    .long 3                             # Section count87    .long 1                             # Unit count88    .long 2                             # Slot count89## Hash Table of Signatures:90    .quad 0x110000112222222291    .quad 092## Parallel Table of Indexes:93    .long 194    .long 095## Table of Section Offsets:96## Row 0:97    .long 1                             # DW_SECT_INFO98    .long 3                             # DW_SECT_ABBREV99    .long 8                             # DW_SECT_RNGLISTS100## Row 1:101    .long 0                             # Offset in .debug_info.dwo102    .long 0                             # Offset in .debug_abbrev.dwo103    .long .LRLT1-.debug_rnglists.dwo    # Offset in .debug_rnglists.dwo104## Table of Section Sizes:105    .long .LCUEnd-.LCU                  # Size in .debug_info.dwo106    .long .LAbbrevEnd-.LAbbrev          # Size in .debug_abbrev.dwo107    .long .LRLT1End-.LRLT1              # Size in .debug_rnglists.dwo108