OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.1/] [gdb/] [testsuite/] [gdb.base/] [advance.c] - Blame information for rev 231

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
 
2
static int x;
3
 
4
int foo (int a)
5
{
6
  int b = a + 10;
7
  return b;
8
}
9
 
10
int bar (int y)
11
{
12
  int z = y + 20;
13
  return z;
14
}
15
 
16
void func()
17
{
18
  x = x + 5;
19
  func2 ();
20
}
21
 
22
int func2 ()
23
{
24
  x = 6;
25
}
26
 
27
int func3 ()
28
{
29
  x = 4;
30
}
31
 
32
void marker1 ()
33
{
34
}
35
 
36
int
37
main ()
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 */
45
  marker1 (); /* stop here after leaving current frame */
46
  func3 (); /* break here */
47
  result = bar (b + foo (c));
48
  return 0; /* advance malformed */
49
}
50
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.