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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.1/] [gdb/] [testsuite/] [gdb.trace/] [circ.c] - Blame information for rev 387

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
/*
2
 * Test program for tracing; circular buffer
3
 */
4
 
5
int n = 6;
6
 
7
int testload[13];
8
 
9
static void func0(void)
10
{
11
}
12
 
13
static void func1(void)
14
{
15
}
16
 
17
static void func2(void)
18
{
19
}
20
 
21
static void func3(void)
22
{
23
}
24
 
25
static void func4(void)
26
{
27
}
28
 
29
static void func5(void)
30
{
31
}
32
 
33
static void func6(void)
34
{
35
}
36
 
37
static void func7(void)
38
{
39
}
40
 
41
static void func8(void)
42
{
43
}
44
 
45
static void func9(void)
46
{
47
}
48
 
49
static void begin ()    /* called before anything else */
50
{
51
}
52
 
53
static void end ()      /* called after everything else */
54
{
55
}
56
 
57
int
58
main (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
}

powered by: WebSVN 2.1.0

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