brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.2 KiB · 2c20181 Raw
68 lines · plain
1# Test that parsing of line tables works reasonably, even if the host directory2# separator does not match the separator of the compile unit.3 4# REQUIRES: lld5 6# RUN: llvm-mc -triple x86_64-pc-linux %s -filetype=obj > %t.o7# RUN: ld.lld %t.o -o %t -z separate-code8# RUN: %lldb %t -s %S/Inputs/dir-separator-posix.lldbinit -o exit | FileCheck %s9 10# CHECK-LABEL: image dump line-table a.c11# CHECK: Line table for /tmp/a.c12# CHECK-NEXT: 0x0000000000201000: /tmp/a.c:113# CHECK-NEXT: 0x0000000000201001: /tmp/b.c:114# CHECK-NEXT: 0x0000000000201002: /tmp/b.c:115# CHECK-EMPTY:16 17# CHECK-LABEL: breakpoint set -f a.c -l 118# CHECK: Breakpoint 1: {{.*}}`_start,19 20# CHECK-LABEL: breakpoint set -f /tmp/b.c -l 121# CHECK: Breakpoint 2: {{.*}}`_start + 1,22 23	.text24	.globl	_start25_start:26	.file	1 "/tmp/a.c"27	.loc	1 1 028        nop29	.file	2 "/tmp/b.c"30	.loc	2 1 031        nop32 33	.section	.debug_str,"MS",@progbits,134.Linfo_string1:35	.asciz	"a.c"36.Linfo_string2:37	.asciz	"/tmp"38	.section	.debug_abbrev,"",@progbits39	.byte	1                       # Abbreviation Code40	.byte	17                      # DW_TAG_compile_unit41	.byte	0                       # DW_CHILDREN_no42	.byte	19                      # DW_AT_language43	.byte	5                       # DW_FORM_data244	.byte	3                       # DW_AT_name45	.byte	14                      # DW_FORM_strp46	.byte	16                      # DW_AT_stmt_list47	.byte	23                      # DW_FORM_sec_offset48	.byte	27                      # DW_AT_comp_dir49	.byte	14                      # DW_FORM_strp50	.byte	0                       # EOM(1)51	.byte	0                       # EOM(2)52	.byte	0                       # EOM(3)53	.section	.debug_info,"",@progbits54.Lcu_begin0:55	.long	.Lcu_end0-.Lcu_start0   # Length of Unit56.Lcu_start0:57	.short	4                       # DWARF version number58	.long	.debug_abbrev           # Offset Into Abbrev. Section59	.byte	8                       # Address Size (in bytes)60	.byte	1                       # Abbrev [1] 0xb:0x1f DW_TAG_compile_unit61	.short	12                      # DW_AT_language62	.long	.Linfo_string1          # DW_AT_name63	.long	.Lline_table_start0     # DW_AT_stmt_list64	.long	.Linfo_string2          # DW_AT_comp_dir65.Lcu_end0:66	.section	.debug_line,"",@progbits67.Lline_table_start0:68