83 lines · plain
1# RUN: llvm-mc -triple=x86_64-pc-linux -filetype=obj %s > %t2# RUN: %lldb %t -o "image lookup -v -s lookup_ranges" -o exit | FileCheck %s3 4# CHECK: Function: id = {0x0000002b}, name = "ranges", range = [0x0000000000000000-0x0000000000000004)5# CHECK: Blocks: id = {0x0000002b}, range = [0x00000000-0x00000004)6# CHECK-NEXT: id = {0x0000003f}, ranges = [0x00000001-0x00000002)[0x00000003-0x00000004)7 8 .text9 .p2align 1210ranges:11 nop12.Lblock1_begin:13lookup_ranges:14 nop15.Lblock1_end:16 nop17.Lblock2_begin:18 nop19.Lblock2_end:20.Lranges_end:21 22 .section .debug_abbrev,"",@progbits23 .byte 1 # Abbreviation Code24 .byte 17 # DW_TAG_compile_unit25 .byte 1 # DW_CHILDREN_yes26 .byte 37 # DW_AT_producer27 .byte 8 # DW_FORM_string28 .byte 17 # DW_AT_low_pc29 .byte 1 # DW_FORM_addr30 .byte 18 # DW_AT_high_pc31 .byte 6 # DW_FORM_data432 .byte 0 # EOM(1)33 .byte 0 # EOM(2)34 .byte 2 # Abbreviation Code35 .byte 46 # DW_TAG_subprogram36 .byte 1 # DW_CHILDREN_yes37 .byte 17 # DW_AT_low_pc38 .byte 1 # DW_FORM_addr39 .byte 18 # DW_AT_high_pc40 .byte 6 # DW_FORM_data441 .byte 3 # DW_AT_name42 .byte 8 # DW_FORM_string43 .byte 0 # EOM(1)44 .byte 0 # EOM(2)45 .byte 5 # Abbreviation Code46 .byte 11 # DW_TAG_lexical_block47 .byte 0 # DW_CHILDREN_no48 .byte 85 # DW_AT_ranges49 .byte 23 # DW_FORM_sec_offset50 .byte 0 # EOM(1)51 .byte 0 # EOM(2)52 .byte 0 # EOM(3)53 54 .section .debug_info,"",@progbits55.Lcu_begin0:56 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit57.Ldebug_info_start0:58 .short 4 # DWARF version number59 .long .debug_abbrev # Offset Into Abbrev. Section60 .byte 8 # Address Size (in bytes)61 .byte 1 # Abbrev [1] 0xb:0x7b DW_TAG_compile_unit62 .asciz "Hand-written DWARF" # DW_AT_producer63 .quad ranges # DW_AT_low_pc64 .long .Lranges_end-ranges # DW_AT_high_pc65 .byte 2 # Abbrev [2] 0x2a:0x4d DW_TAG_subprogram66 .quad ranges # DW_AT_low_pc67 .long .Lranges_end-ranges # DW_AT_high_pc68 .asciz "ranges" # DW_AT_name69 .byte 5 # Abbrev [5] 0x61:0x15 DW_TAG_lexical_block70 .long .Ldebug_ranges0 # DW_AT_ranges71 .byte 0 # End Of Children Mark72 .byte 0 # End Of Children Mark73.Ldebug_info_end0:74 75 .section .debug_ranges,"",@progbits76.Ldebug_ranges0:77 .quad .Lblock1_begin-ranges78 .quad .Lblock1_end-ranges79 .quad .Lblock2_begin-ranges80 .quad .Lblock2_end-ranges81 .quad 082 .quad 083