xref: /netbsd-src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.mi/dw2-ref-missing-frame-func.c (revision bdc22b2e01993381dcefeff2bc9b56ca75a4235c)
1 /* This testcase is part of GDB, the GNU debugger.
2 
3    Copyright 2010-2016 Free Software Foundation, Inc.
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 
18 asm (".globl cu_text_start");
19 asm ("cu_text_start:");
20 
21 asm (".globl func_nofb_start");
22 asm ("func_nofb_start:");
23 
24 void
25 func_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 
34 asm (".globl func_nofb_end");
35 asm ("func_nofb_end:");
36 
37 asm (".globl func_loopfb_start");
38 asm ("func_loopfb_start:");
39 
40 void
41 func_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 
50 asm (".globl func_loopfb_end");
51 asm ("func_loopfb_end:");
52 
53 asm (".globl cu_text_end");
54 asm ("cu_text_end:");
55