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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gdb-7.2/] [gdb-7.2-or32-1.0rc3/] [gdb/] [testsuite/] [gdb.base/] [dump.c] - Blame information for rev 513

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 330 jeremybenn
#include <string.h>
2
 
3
#define ARRSIZE 32
4
int intarray[ARRSIZE], intarray2[ARRSIZE];
5
 
6
struct teststruct {
7
  int a;
8
  int b;
9
  int c;
10
  int d;
11
  int e;
12
  int f;
13
  int g;
14
} intstruct, intstruct2;
15
 
16
void checkpoint1 ()
17
{
18
  /* intarray and teststruct have been initialized. */
19
}
20
 
21
void
22
zero_all ()
23
{
24
  memset ((char *) &intarray,   0, sizeof (intarray));
25
  memset ((char *) &intarray2,  0, sizeof (intarray2));
26
  memset ((char *) &intstruct,  0, sizeof (intstruct));
27
  memset ((char *) &intstruct2, 0, sizeof (intstruct2));
28
}
29
 
30
main()
31
{
32
  int i;
33
 
34
  for (i = 0; i < ARRSIZE; i++)
35
    intarray[i] = i+1;
36
 
37
  intstruct.a = 12 * 1;
38
  intstruct.b = 12 * 2;
39
  intstruct.c = 12 * 3;
40
  intstruct.d = 12 * 4;
41
  intstruct.e = 12 * 5;
42
  intstruct.f = 12 * 6;
43
  intstruct.g = 12 * 7;
44
 
45
  checkpoint1 ();
46
}

powered by: WebSVN 2.1.0

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