import gdb-1999-06-28 snapshot
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / mips_pro.c
CommitLineData
c906108c
SS
1/* Tests regarding examination of prologues. */
2
085dd6e6
JM
3#ifdef PROTOTYPES
4int
5inner (int z)
6#else
c906108c
SS
7int
8inner (z)
9 int z;
085dd6e6 10#endif
c906108c
SS
11{
12 return 2 * z;
13}
14
085dd6e6
JM
15#ifdef PROTOTYPES
16int
17middle (int x)
18#else
c906108c
SS
19int
20middle (x)
21 int x;
085dd6e6 22#endif
c906108c
SS
23{
24 if (x == 0)
25 return inner (5);
26 else
27 return inner (6);
28}
29
085dd6e6
JM
30#ifdef PROTOTYPES
31int
32top (int y)
33#else
c906108c
SS
34int
35top (y)
36 int y;
085dd6e6 37#endif
c906108c
SS
38{
39 return middle (y + 1);
40}
41
085dd6e6
JM
42#ifdef PROTOTYPES
43int
44main (int argc, char **argv)
45#else
c906108c
SS
46int
47main (argc, argv)
085dd6e6
JM
48 int argc;
49 char **argv;
50#endif
c906108c
SS
51{
52#ifdef usestubs
53 set_debug_traps();
54 breakpoint();
55#endif
56 return top (-1) + top (1);
57}
This page took 0.032373 seconds and 4 git commands to generate.