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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [gdb/] [testsuite/] [gdb.trace/] [limits.c] - Blame information for rev 826

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

Line No. Rev Author Line
1 24 jeremybenn
/*
2
 * Test program for tracing internal limits (number of tracepoints etc.)
3
 */
4
 
5
int n = 6;
6
 
7
int arr[64];
8
 
9
static void foo(int x)
10
{
11
}
12
 
13
static void bar(int y)
14
{
15
}
16
 
17
static void baz(int z)
18
{
19
}
20
 
21
static void begin ()    /* called before anything else */
22
{
23
}
24
 
25
static void end ()      /* called after everything else */
26
{
27
}
28
 
29
int
30
main (argc, argv, envp)
31
     int argc;
32
     char *argv[], **envp;
33
{
34
  int i;
35
 
36
#ifdef usestubs
37
  set_debug_traps ();
38
  breakpoint ();
39
#endif
40
 
41
  begin ();
42
  for (i = 0; i < sizeof(arr) / sizeof(arr[0]); i++)
43
    arr[i] = i + 1;
44
 
45
  foo (1);
46
  bar (2);
47
  baz (3);
48
  end ();
49
  return 0;
50
}
51
 

powered by: WebSVN 2.1.0

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