gdb/python: don't allow the user to delete window title attributes
[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;
b32102f6 19 return x;
82025e13
EZ
20}
21
b32102f6 22void func(int c)
82025e13 23{
a59add0c
AA
24 x = x + 5;
25 func2 ();
82025e13
EZ
26}
27
28int func3 ()
29{
30 x = 4;
b32102f6 31 return x;
82025e13
EZ
32}
33
9ba61c5d
MC
34void marker1 ()
35{
36}
37
82025e13
EZ
38int
39main ()
40{
41 int result;
42 int b, c;
43 c = 5;
44 b = 3; /* advance this location */
45
46 func (c); /* stop here after leaving current frame */
9ba61c5d 47 marker1 (); /* stop here after leaving current frame */
82025e13
EZ
48 func3 (); /* break here */
49 result = bar (b + foo (c));
50 return 0; /* advance malformed */
51}
52
This page took 4.340231 seconds and 4 git commands to generate.