Target FP: Make use of MPFR if available
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / advance.c
CommitLineData
82025e13
EZ
1
2static int x;
3
4int foo (int a)
5{
6 int b = a + 10;
7 return b;
8}
9
10int bar (int y)
11{
12 int z = y + 20;
13 return z;
14}
15
a59add0c 16int func2 ()
82025e13 17{
a59add0c 18 x = 6;
82025e13
EZ
19}
20
a59add0c 21void func()
82025e13 22{
a59add0c
AA
23 x = x + 5;
24 func2 ();
82025e13
EZ
25}
26
27int func3 ()
28{
29 x = 4;
30}
31
9ba61c5d
MC
32void marker1 ()
33{
34}
35
82025e13
EZ
36int
37main ()
38{
39 int result;
40 int b, c;
41 c = 5;
42 b = 3; /* advance this location */
43
44 func (c); /* stop here after leaving current frame */
9ba61c5d 45 marker1 (); /* stop here after leaving current frame */
82025e13
EZ
46 func3 (); /* break here */
47 result = bar (b + foo (c));
48 return 0; /* advance malformed */
49}
50
This page took 1.481178 seconds and 4 git commands to generate.