2010-03-18 Stan Shebs <stan@codesourcery.com>
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.trace / circ.c
CommitLineData
c906108c
SS
1/*
2 * Test program for tracing; circular buffer
3 */
4
5int n = 6;
6
7int testload[13];
8
9static void func0(void)
10{
11}
12
13static void func1(void)
14{
15}
16
17static void func2(void)
18{
19}
20
21static void func3(void)
22{
23}
24
25static void func4(void)
26{
27}
28
29static void func5(void)
30{
31}
32
33static void func6(void)
34{
35}
36
37static void func7(void)
38{
39}
40
41static void func8(void)
42{
43}
44
45static void func9(void)
46{
47}
48
49static void begin () /* called before anything else */
50{
51}
52
53static void end () /* called after everything else */
54{
55}
56
57int
58main (argc, argv, envp)
59 int argc;
60 char *argv[], **envp;
61{
62 int i;
63
64#ifdef usestubs
65 set_debug_traps ();
66 breakpoint ();
67#endif
68
69 begin ();
70 for (i = 0; i < sizeof(testload) / sizeof(testload[0]); i++)
71 testload[i] = i + 1;
72
73 func0 ();
74 func1 ();
75 func2 ();
76 func3 ();
77 func4 ();
78 func5();
79 func6 ();
80 func7 ();
81 func8 ();
82 func9 ();
83
84 end ();
85
86#ifdef usestubs
87 breakpoint ();
88#endif
89 return 0;
90}
This page took 0.912415 seconds and 4 git commands to generate.