2002-03-25 Michael Snyder <msnyder@redhat.com>
[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 /* A value that will produce a target data object large enough to
6 crash GDB. 0x200000 is big enough on GNU/Linux, other systems may
7 need a larger number. */
8
9 #define CRASH_GDB 0x200000
10
11 static int a[CRASH_GDB], b[CRASH_GDB];
12
13 main()
14 {
15 memcpy (a, b, sizeof (a));
16 return 0;
17 }
This page took 0.029832 seconds and 4 git commands to generate.