* gdb.base/attach.exp: When trying to attach to a nonexistent
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / dump.c
CommitLineData
dd7dfd64
MS
1#define ARRSIZE 32
2int intarray[ARRSIZE], intarray2[ARRSIZE];
3
4struct teststruct {
5 int a;
6 int b;
7 int c;
8 int d;
9 int e;
10 int f;
11 int g;
12} intstruct, intstruct2;
13
14void checkpoint1 ()
15{
16 /* intarray and teststruct have been initialized. */
17}
18
19void
20zero_all ()
21{
22 memset ((char *) &intarray, 0, sizeof (intarray));
23 memset ((char *) &intarray2, 0, sizeof (intarray2));
24 memset ((char *) &intstruct, 0, sizeof (intstruct));
25 memset ((char *) &intstruct2, 0, sizeof (intstruct2));
26}
27
28main()
29{
30 int i;
31
32 for (i = 0; i < ARRSIZE; i++)
33 intarray[i] = i+1;
34
35 intstruct.a = 12 * 1;
36 intstruct.b = 12 * 2;
37 intstruct.c = 12 * 3;
38 intstruct.d = 12 * 4;
39 intstruct.e = 12 * 5;
40 intstruct.f = 12 * 6;
41 intstruct.g = 12 * 7;
42
43 checkpoint1 ();
44}
This page took 0.162532 seconds and 4 git commands to generate.