s/Linux/.../
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / huge.c
CommitLineData
21b9b5b1
MS
1/*
2 * Test GDB's ability to read a very large data object from target memory.
3 */
4
92362027
AC
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. */
21b9b5b1
MS
8
9#define CRASH_GDB 0x200000
10
11static int a[CRASH_GDB], b[CRASH_GDB];
12
13main()
14{
15 memcpy (a, b, sizeof (a));
16 return 0;
17}
This page took 0.042674 seconds and 4 git commands to generate.