Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / gdb6 / gdb / testsuite / gdb.trace / circ.c
blob98a2ce6be54e7907356282093dbed2c67168fbf2
1 /*
2 * Test program for tracing; circular buffer
3 */
5 int n = 6;
7 int testload[13];
9 static void func0(void)
13 static void func1(void)
17 static void func2(void)
21 static void func3(void)
25 static void func4(void)
29 static void func5(void)
33 static void func6(void)
37 static void func7(void)
41 static void func8(void)
45 static void func9(void)
49 static void begin () /* called before anything else */
53 static void end () /* called after everything else */
57 int
58 main (argc, argv, envp)
59 int argc;
60 char *argv[], **envp;
62 int i;
64 #ifdef usestubs
65 set_debug_traps ();
66 breakpoint ();
67 #endif
69 begin ();
70 for (i = 0; i < sizeof(testload) / sizeof(testload[0]); i++)
71 testload[i] = i + 1;
73 func0 ();
74 func1 ();
75 func2 ();
76 func3 ();
77 func4 ();
78 func5();
79 func6 ();
80 func7 ();
81 func8 ();
82 func9 ();
84 end ();
86 #ifdef usestubs
87 breakpoint ();
88 #endif
89 return 0;