]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/testsuite/gdb.base/huge.c
2002-01-07 Michael Snyder <msnyder@redhat.com>
[thirdparty/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 /*
6 * A value that will produce a target data object
7 * large enough to crash GDB. 0x200000 is big enough
8 * on Linux, other systems may need a larger number.
9 */
10
11 #define CRASH_GDB 0x200000
12
13 static int a[CRASH_GDB], b[CRASH_GDB];
14
15 main()
16 {
17 memcpy (a, b, sizeof (a));
18 return 0;
19 }