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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.3/] [gdb/] [testsuite/] [gdb.mi/] [basics.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1181 sfurman
/*
2
 *      This simple program that passes different types of arguments
3
 *      on function calls.  Useful to test printing frames, stepping, etc.
4
 */
5
 
6
int callee4 (void)
7
{
8
  int A=1;
9
  int B=2;
10
  int C;
11
 
12
  C = A + B;
13
  return 0;
14
}
15
callee3 (char *strarg)
16
{
17
  callee4 ();
18
}
19
 
20
callee2 (int intarg, char *strarg)
21
{
22
  callee3 (strarg);
23
}
24
 
25
callee1 (int intarg, char *strarg, double fltarg)
26
{
27
  callee2 (intarg, strarg);
28
}
29
 
30
main ()
31
{
32
  callee1 (2, "A string argument.", 3.5);
33
  callee1 (2, "A string argument.", 3.5);
34
 
35
  printf ("Hello, World!");
36
 
37
  return 0;
38
}
39
 
40
/*
41
Local variables:
42
change-log-default-name: "ChangeLog-mi"
43
End:
44
*/
45
 

powered by: WebSVN 2.1.0

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