OSDN Git Service

Initial revision
[pf3gnuchains/pf3gnuchains4x.git] / gdb / testsuite / gdb.base / mips_pro.c
1 /* Tests regarding examination of prologues.  */
2
3 int
4 inner (z)
5      int z;
6 {
7   return 2 * z;
8 }
9
10 int
11 middle (x)
12      int x;
13 {
14   if (x == 0)
15     return inner (5);
16   else
17     return inner (6);
18 }
19
20 int
21 top (y)
22      int y;
23 {
24   return middle (y + 1);
25 }
26
27 int
28 main (argc, argv)
29 {
30 #ifdef usestubs
31   set_debug_traps();
32   breakpoint();
33 #endif
34   return top (-1) + top (1);
35 }