import gdb-1999-11-01 snapshot
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / remote.c
1 #include <stdio.h>
2 #include <stdlib.h>
3
4 /**************************************************************************
5 * TESTS :
6 * -- downloading of a rather large executable
7 ***************************************************************************/
8
9
10 /* A large array in .data. If RLE compression becomes available during
11 downloads, this would have to become a bunch of real random data.
12 Here's a quick way of generating such a bunch:
13
14 yes | awk '{printf ("%4d,", rand()*1000);}' | fold -w80 -s | head -4096
15
16 */
17
18 unsigned long random_data[65536] = { 1 };
19
20 int
21 main()
22 {
23 printf ("%lu\n", random_data [rand() %
24 (sizeof (random_data) /
25 sizeof (random_data [0]))]);
26 }
This page took 0.032313 seconds and 4 git commands to generate.