1: /*
2: * Test program for dbx call command.
3: */
4:
5: int global;
6:
7: main (argc, argv)
8: int argc;
9: char *argv[];
10: {
11: int main_local;
12:
13: global = 2;
14: main_local = 19;
15: p1();
16: p2(main_local);
17: p3("test");
18: }
19:
20: p1 ()
21: {
22: printf("in p1\n");
23: global = 4;
24: }
25:
26: p2 (from_main)
27: int from_main;
28: {
29: printf("in p2(%d)\n", from_main);
30: global = 9;
31: }
32:
33: p3 (s)
34: char s[];
35: {
36: printf("in p3(%s)\n", s);
37: global = 10;
38: }
Defined functions
main
defined in line
7;
never used
p1
defined in line
20; used 1 times
p2
defined in line
26; used 1 times
p3
defined in line
33; used 1 times
Defined variables
global
defined in line
5; used 4 times