Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / gdb6 / gdb / testsuite / gdb.base / advance.c
blob8066deec421d0a1253eba604b1c7d7c1d9d1575b
2 static int x;
4 int foo (int a)
6 int b = a + 10;
7 return b;
10 int bar (int y)
12 int z = y + 20;
13 return z;
16 void func()
18 x = x + 5;
19 func2 ();
22 int func2 ()
24 x = 6;
27 int func3 ()
29 x = 4;
32 void marker1 ()
36 int
37 main ()
39 int result;
40 int b, c;
41 c = 5;
42 b = 3; /* advance this location */
44 func (c); /* stop here after leaving current frame */
45 marker1 (); /* stop here after leaving current frame */
46 func3 (); /* break here */
47 result = bar (b + foo (c));
48 return 0; /* advance malformed */