57727e9f9f8e0521543341f4d08d6142a9ca231b
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / huge.c
1 /*
2 * Test GDB's ability to read a very large data object from target memory.
3 */
4
5 #include <string.h>
6
7 /* A value that will produce a target data object large enough to
8 crash GDB. 0x200000 is big enough on GNU/Linux, other systems may
9 need a larger number. */
10 #ifndef CRASH_GDB
11 #define CRASH_GDB 0x200000
12 #endif
13 static int a[CRASH_GDB], b[CRASH_GDB];
14
15 int
16 main()
17 {
18 memcpy (a, b, sizeof (a));
19 return 0;
20 }
This page took 0.031182 seconds and 4 git commands to generate.