brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.3 KiB · 3459ac4 Raw
67 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o3# RUN: ld.lld --gdb-index -e main %t.o -o %t4# RUN: llvm-dwarfdump -gdb-index %t | FileCheck %s5 6# CHECK:       .gdb_index contents:7# CHECK:        Address area offset = 0x28, has 2 entries:8# CHECK-NEXT:     Low/High address = [0x201120, 0x201121) (Size: 0x1), CU id = 09# CHECK-NEXT:     Low/High address = [0x201121, 0x201123) (Size: 0x2), CU id = 010 11.section .text.foo1,"ax",@progbits12.Lfunc_begin0:13 nop14.Lfunc_end0:15 16.section .text.foo2,"ax",@progbits17.Lfunc_begin1:18 nop19 nop20.Lfunc_end1:21 22.section .debug_abbrev,"",@progbits23.byte 1                       # Abbreviation Code24.byte 17                      # DW_TAG_compile_unit25.byte 0                       # DW_CHILDREN_no26.byte 37                      # DW_AT_producer27.byte 14                      # DW_FORM_strp28.byte 19                      # DW_AT_language29.byte 5                       # DW_FORM_data230.byte 3                       # DW_AT_name31.byte 14                      # DW_FORM_strp32.byte 16                      # DW_AT_stmt_list33.byte 23                      # DW_FORM_sec_offset34.byte 27                      # DW_AT_comp_dir35.byte 14                      # DW_FORM_strp36.byte 17                      # DW_AT_low_pc37.byte 1                       # DW_FORM_addr38.byte 85                      # DW_AT_ranges39.byte 23                      # DW_FORM_sec_offset40.byte 0                       # EOM(1)41.byte 0                       # EOM(2)42.byte 0                       # EOM(3)43 44.section .debug_info,"",@progbits45.Lcu_begin0:46.long 38                      # Length of Unit47.short 4                      # DWARF version number48.long .debug_abbrev           # Offset Into Abbrev. Section49.byte 8                       # Address Size (in bytes)50.byte 1                       # Abbrev [1] 0xb:0x1f DW_TAG_compile_unit51.long 0                       # DW_AT_producer52.short 4                      # DW_AT_language53.long 0                       # DW_AT_name54.long 0                       # DW_AT_stmt_list55.long 0                       # DW_AT_comp_dir56.quad 0                       # DW_AT_low_pc57.long .Ldebug_ranges0         # DW_AT_ranges58 59.section .debug_ranges,"",@progbits60.Ldebug_ranges0:61.quad .Lfunc_begin062.quad .Lfunc_end063.quad .Lfunc_begin164.quad .Lfunc_end165.quad 066.quad 067