* mi-cmd-stack.c (list_args_or_locals): Output a list of "args" or
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.mi / basics.c
CommitLineData
fb40c209
AC
1/*
2 * This simple program that passes different types of arguments
3 * on function calls. Useful to test printing frames, stepping, etc.
4 */
5
19e08fb3 6int callee4 (void)
fb40c209
AC
7{
8 int A=1;
9 int B=2;
10 int C;
11
12 C = A + B;
19e08fb3 13 return 0;
fb40c209 14}
fb40c209
AC
15callee3 (char *strarg)
16{
17 callee4 ();
18}
19
20callee2 (int intarg, char *strarg)
21{
22 callee3 (strarg);
23}
24
25callee1 (int intarg, char *strarg, double fltarg)
26{
27 callee2 (intarg, strarg);
28}
29
30main ()
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
d909a056
AC
40/*
41Local variables:
42change-log-default-name: "ChangeLog-mi"
43End:
44*/
fb40c209 45
This page took 0.101113 seconds and 4 git commands to generate.