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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [testsuite/] [gdb.mi/] [basics.c] - Diff between revs 107 and 1765

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 107 Rev 1765
/*
/*
 *      This simple program that passes different types of arguments
 *      This simple program that passes different types of arguments
 *      on function calls.  Useful to test printing frames, stepping, etc.
 *      on function calls.  Useful to test printing frames, stepping, etc.
 */
 */
 
 
int callee4 (void)
int callee4 (void)
{
{
  int A=1;
  int A=1;
  int B=2;
  int B=2;
  int C;
  int C;
 
 
  C = A + B;
  C = A + B;
  return 0;
  return 0;
}
}
callee3 (char *strarg)
callee3 (char *strarg)
{
{
  callee4 ();
  callee4 ();
}
}
 
 
callee2 (int intarg, char *strarg)
callee2 (int intarg, char *strarg)
{
{
  callee3 (strarg);
  callee3 (strarg);
}
}
 
 
callee1 (int intarg, char *strarg, double fltarg)
callee1 (int intarg, char *strarg, double fltarg)
{
{
  callee2 (intarg, strarg);
  callee2 (intarg, strarg);
}
}
 
 
main ()
main ()
{
{
  callee1 (2, "A string argument.", 3.5);
  callee1 (2, "A string argument.", 3.5);
  callee1 (2, "A string argument.", 3.5);
  callee1 (2, "A string argument.", 3.5);
 
 
  printf ("Hello, World!");
  printf ("Hello, World!");
 
 
  return 0;
  return 0;
}
}
 
 
/*
/*
Local variables:
Local variables:
change-log-default-name: "ChangeLog-mi"
change-log-default-name: "ChangeLog-mi"
End:
End:
*/
*/
 
 
 
 

powered by: WebSVN 2.1.0

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