brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.4 KiB · 5e83f26 Raw
64 lines · plain
1# Test that an empty .debug_aranges section doesn't confuse (or crash) us.2 3# RUN: llvm-mc %s -triple x86_64-pc-linux -filetype=obj >%t4# RUN: %lldb %t -o "breakpoint set -n f" -b | FileCheck %s5 6# CHECK: Breakpoint 1: where = {{.*}}`f, address = 0x00000000000000477 8	.text9	.globl	f                       # -- Begin function f10	.type	f,@function11        .rept 0x4712        nop13        .endr14f:                                      # @f15.Lfunc_begin0:16	retq17.Lfunc_end0:18	.size	f, .Lfunc_end0-f19                                        # -- End function20	.section	.debug_str,"MS",@progbits,121.Linfo_string3:22	.asciz	"f"                     # string offset=8323	.section	.debug_abbrev,"",@progbits24	.byte	1                       # Abbreviation Code25	.byte	17                      # DW_TAG_compile_unit26	.byte	1                       # DW_CHILDREN_yes27	.byte	17                      # DW_AT_low_pc28	.byte	1                       # DW_FORM_addr29	.byte	18                      # DW_AT_high_pc30	.byte	6                       # DW_FORM_data431	.byte	0                       # EOM(1)32	.byte	0                       # EOM(2)33	.byte	2                       # Abbreviation Code34	.byte	46                      # DW_TAG_subprogram35	.byte	0                       # DW_CHILDREN_no36	.byte	17                      # DW_AT_low_pc37	.byte	1                       # DW_FORM_addr38	.byte	18                      # DW_AT_high_pc39	.byte	6                       # DW_FORM_data440	.byte	3                       # DW_AT_name41	.byte	14                      # DW_FORM_strp42	.byte	0                       # EOM(1)43	.byte	0                       # EOM(2)44	.byte	0                       # EOM(3)45	.section	.debug_info,"",@progbits46.Lcu_begin0:47	.long	.Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit48.Ldebug_info_start0:49	.short	4                       # DWARF version number50	.long	.debug_abbrev           # Offset Into Abbrev. Section51	.byte	8                       # Address Size (in bytes)52	.byte	1                       # Abbrev [1] 0xb:0x35 DW_TAG_compile_unit53	.quad	.Lfunc_begin0           # DW_AT_low_pc54	.long	.Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc55	.byte	2                       # Abbrev [2] 0x2a:0x15 DW_TAG_subprogram56	.quad	.Lfunc_begin0           # DW_AT_low_pc57	.long	.Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc58	.long	.Linfo_string3          # DW_AT_name59	.byte	0                       # End Of Children Mark60.Ldebug_info_end0:61 62	.section	".note.GNU-stack","",@progbits63	.section	.debug_aranges,"",@progbits64