brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.3 KiB · 9278768 Raw
71 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o3# RUN: ld.lld --gdb-index %t1.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 = [0x201123, 0x201126) (Size: 0x3), CU id = 010 11.text12.globl foo13.type foo,@function14foo:15.Lfunc_begin0:16  nop17.Ltmp0:18  nop19  nop20.Ltmp1:21  nop22  nop23  nop24.Ltmp2:25 26.section .debug_abbrev,"",@progbits27.byte 1                       # Abbreviation Code28.byte 17                      # DW_TAG_compile_unit29.byte 0                       # DW_CHILDREN_no30.byte 37                      # DW_AT_producer31.byte 14                      # DW_FORM_strp32.byte 19                      # DW_AT_language33.byte 5                       # DW_FORM_data234.byte 3                       # DW_AT_name35.byte 14                      # DW_FORM_strp36.byte 16                      # DW_AT_stmt_list37.byte 23                      # DW_FORM_sec_offset38.byte 27                      # DW_AT_comp_dir39.byte 14                      # DW_FORM_strp40.byte 17                      # DW_AT_low_pc41.byte 1                       # DW_FORM_addr42.byte 85                      # DW_AT_ranges43.byte 23                      # DW_FORM_sec_offset44.byte 0                       # EOM(1)45.byte 0                       # EOM(2)46.byte 0                       # EOM(3)47 48.section .debug_info,"",@progbits49.Lcu_begin0:50.long 38                      # Length of Unit51.short 4                      # DWARF version number52.long .debug_abbrev           # Offset Into Abbrev. Section53.byte 8                       # Address Size (in bytes)54.byte 1                       # Abbrev [1] 0xb:0x1f DW_TAG_compile_unit55.long 0                       # DW_AT_producer56.short 4                      # DW_AT_language57.long 0                       # DW_AT_name58.long 0                       # DW_AT_stmt_list59.long 0                       # DW_AT_comp_dir60.quad .Lfunc_begin0           # DW_AT_low_pc61.long .Ldebug_ranges0         # DW_AT_ranges62 63.section .debug_ranges,"",@progbits64.Ldebug_ranges0:65 .quad .Lfunc_begin0-.Lfunc_begin066 .quad .Ltmp0-.Lfunc_begin067 .quad .Ltmp1-.Lfunc_begin068 .quad .Ltmp2-.Lfunc_begin069 .quad 070 .quad 071