aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-frame.c
blob: 82db34111bd444c378f5f9c0e9b4049f197ef15d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
int f2 (int a)
{
  return ++a;
}

int f1 (int a, int b)
{
  return f2(a) + b;
}

int block (void)
{
  int i = 99;
  {
    double i = 1.1;
    double f = 2.2;
    {
      const char *i = "stuff";
      const char *f = "foo";
      const char *b = "bar";
      return 0; /* Block break here.  */
    }
  }
}

int main (int argc, char *argv[])
{
  block ();
  return f1 (1, 2);
}