Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / gdb6 / gdb / testsuite / gdb.base / huge.c
blob446bb1803712f71c44401eac3ce24dd30be12523
1 /*
2 * Test GDB's ability to read a very large data object from target memory.
3 */
5 #include <string.h>
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. */
11 #define CRASH_GDB 0x200000
13 static int a[CRASH_GDB], b[CRASH_GDB];
15 main()
17 memcpy (a, b, sizeof (a));
18 return 0;