Automatic Copyright Year update after running gdb/copyright.py
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.mi / dw2-ref-missing-frame-func.c
CommitLineData
875b4ff5
PM
1/* This testcase is part of GDB, the GNU debugger.
2
88b9d363 3 Copyright 2010-2022 Free Software Foundation, Inc.
875b4ff5
PM
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
17
18asm (".globl cu_text_start");
19asm ("cu_text_start:");
20
21asm (".globl func_nofb_start");
22asm ("func_nofb_start:");
23
24void
25func_nofb (void)
26{
27 /* int func_nofb_var; */
28 /* int func_nofb_var2; */
29
30 extern void func_nofb_marker (void);
31 func_nofb_marker ();
32}
33
34asm (".globl func_nofb_end");
35asm ("func_nofb_end:");
36
37asm (".globl func_loopfb_start");
38asm ("func_loopfb_start:");
39
40void
41func_loopfb (void)
42{
43 /* int func_loopfb_var; */
44 /* int func_loopfb_var2; */
45
46 extern void func_loopfb_marker (void);
47 func_loopfb_marker ();
48}
49
50asm (".globl func_loopfb_end");
51asm ("func_loopfb_end:");
52
53asm (".globl cu_text_end");
54asm ("cu_text_end:");
927aa2e7
JK
55
56/* The .debug_names-based index support depends on .debug_aranges
57 generated by GCC. (.gdb_index includes a gdb-generated map
58 instead.) */
59asm (
54ac3df1
TV
60" .pushsection .debug_info,\"\",%progbits \n"
61".Lcu1_begin: \n"
62" .popsection \n"
ecc054c0 63" .pushsection .debug_aranges,\"\",%progbits \n"
927aa2e7
JK
64" .4byte .Laranges_end - .Laranges_start \n" // Length of Address Ranges Info
65".Laranges_start: \n"
66" .2byte 0x2 \n" // DWARF Version
54ac3df1 67" .4byte .Lcu1_begin\n" // .Ldebug_info0 - Offset of Compilation Unit Info
927aa2e7
JK
68" .byte 4 \n" // Size of Address
69" .byte 0 \n" // Size of Segment Descriptor
70" .2byte 0 \n" // Pad to 16 byte boundary
71" .2byte 0 \n"
72" .4byte cu_text_start \n" // Address
73" .4byte cu_text_end - cu_text_start \n" // Length
74" .4byte 0 \n"
75" .4byte 0 \n"
76".Laranges_end: \n"
77" .popsection \n"
78);
This page took 1.339058 seconds and 4 git commands to generate.