GDB: trad-frame: Store length of value_bytes in trad_frame_saved_reg
[binutils-gdb.git] / gdb / testsuite / gdb.base / advance.c
bloba72cb13be017254c879539ce9b2ce21a98e7e6f3
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 int func2 ()
18 x = 6;
19 return x;
22 void func(int c)
24 x = x + 5;
25 func2 ();
28 int func3 ()
30 x = 4;
31 return x;
34 void marker1 ()
38 int
39 main ()
41 int result;
42 int b, c;
43 c = 5;
44 b = 3; /* advance this location */
46 func (c); /* stop here after leaving current frame */
47 marker1 (); /* stop here after leaving current frame */
48 func3 (); /* break here */
49 result = bar (b + foo (c));
50 return 0; /* advance malformed */