brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.1 KiB · dbf6aef Raw
168 lines · plain
1# REQUIRES: system-linux2 3# RUN: llvm-mc -dwarf-version=4 -filetype=obj -triple x86_64-unknown-linux %s -o %t1.o4# RUN: %clang %cflags -dwarf-5 %t1.o -o %t.exe -Wl,-q5# RUN: llvm-bolt %t.exe -o %t.bolt --update-debug-sections6# RUN: llvm-dwarfdump --show-form --verbose --debug-line %t.exe | FileCheck --check-prefix=PRECHECK %s7# RUN: llvm-dwarfdump --show-form --verbose --debug-line %t.bolt | FileCheck --check-prefix=POSTCHECK %s8 9## This test checks that .debug_line gets generated correctly when .debug_info is DWARF5, and .debug_line is DWARF4.10 11# PRECHECK: version: 412# PRECHECK: file_names[  1]:13# PRECHECK-NEXT: name: "main.cpp"14# PRECHECK-NEXT: dir_index: 015# PRECHECK-NEXT: mod_time: 0x0000000016# PRECHECK-NEXT: length: 0x0000000017 18# POSTCHECK: version: 419# POSTCHECK: file_names[  1]:20# POSTCHECK-NEXT: name: "main.cpp"21# POSTCHECK-NEXT: dir_index: 022# POSTCHECK-NEXT: mod_time: 0x0000000023# POSTCHECK-NEXT: length: 0x0000000024 25# int main() {26#    return 0;27# }28 29 30	.file	"main.cpp"31	.text32.Ltext0:33	.globl	main34	.type	main, @function35main:36.LFB0:37	.file 1 "main.cpp"38	.loc 1 1 1239	.cfi_startproc40	pushq	%rbp41	.cfi_def_cfa_offset 1642	.cfi_offset 6, -1643	movq	%rsp, %rbp44	.cfi_def_cfa_register 645	.loc 1 2 1046	movl	$0, %eax47	.loc 1 3 148	popq	%rbp49	.cfi_def_cfa 7, 850	ret51	.cfi_endproc52.LFE0:53	.size	main, .-main54.Letext0:55	.section	.debug_info,"",@progbits56.Ldebug_info0:57	.long	0x5058	.value	0x559	.byte	0x160	.byte	0x861	.long	.Ldebug_abbrev062	.uleb128 0x163	.long	.LASF064	.byte	0x2165	.long	.LASF166	.long	.LASF267	.quad	.Ltext068	.quad	.Letext0-.Ltext069	.long	.Ldebug_line070	.uleb128 0x271	.long	.LASF372	.byte	0x173	.byte	0x174	.byte	0x575	.long	0x4c76	.quad	.LFB077	.quad	.LFE0-.LFB078	.uleb128 0x179	.byte	0x9c80	.uleb128 0x381	.byte	0x482	.byte	0x583	.string	"int"84	.byte	085	.section	.debug_abbrev,"",@progbits86.Ldebug_abbrev0:87	.uleb128 0x188	.uleb128 0x1189	.byte	0x190	.uleb128 0x2591	.uleb128 0xe92	.uleb128 0x1393	.uleb128 0xb94	.uleb128 0x395	.uleb128 0xe96	.uleb128 0x1b97	.uleb128 0xe98	.uleb128 0x1199	.uleb128 0x1100	.uleb128 0x12101	.uleb128 0x7102	.uleb128 0x10103	.uleb128 0x17104	.byte	0105	.byte	0106	.uleb128 0x2107	.uleb128 0x2e108	.byte	0109	.uleb128 0x3f110	.uleb128 0x19111	.uleb128 0x3112	.uleb128 0xe113	.uleb128 0x3a114	.uleb128 0xb115	.uleb128 0x3b116	.uleb128 0xb117	.uleb128 0x39118	.uleb128 0xb119	.uleb128 0x49120	.uleb128 0x13121	.uleb128 0x11122	.uleb128 0x1123	.uleb128 0x12124	.uleb128 0x7125	.uleb128 0x40126	.uleb128 0x18127	.uleb128 0x7a128	.uleb128 0x19129	.byte	0130	.byte	0131	.uleb128 0x3132	.uleb128 0x24133	.byte	0134	.uleb128 0xb135	.uleb128 0xb136	.uleb128 0x3e137	.uleb128 0xb138	.uleb128 0x3139	.uleb128 0x8140	.byte	0141	.byte	0142	.byte	0143	.section	.debug_aranges,"",@progbits144	.long	0x2c145	.value	0x2146	.long	.Ldebug_info0147	.byte	0x8148	.byte	0149	.value	0150	.value	0151	.quad	.Ltext0152	.quad	.Letext0-.Ltext0153	.quad	0154	.quad	0155	.section	.debug_line,"",@progbits156.Ldebug_line0:157	.section	.debug_str,"MS",@progbits,1158.LASF0:159	.string	"GNU C++14 8.5.0 20210514 (Red Hat 8.5.0-3) -mtune=generic -march=x86-64 -g2 -gdwarf-5"160.LASF1:161	.string	"main.cpp"162.LASF3:163	.string	"main"164.LASF2:165	.string	"."166	.ident	"GCC: (GNU) 8.5.0 20210514 (Red Hat 8.5.0-3)"167	.section	.note.GNU-stack,"",@progbits168