[gdb/testsuite] Split up multi-exec test-cases
[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
7cf03d44
MK
5#include <string.h>
6
92362027
AC
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. */
f6c957d2 10#ifndef CRASH_GDB
21b9b5b1 11#define CRASH_GDB 0x200000
f6c957d2 12#endif
21b9b5b1
MS
13static int a[CRASH_GDB], b[CRASH_GDB];
14
a59add0c 15int
21b9b5b1
MS
16main()
17{
18 memcpy (a, b, sizeof (a));
19 return 0;
20}
This page took 1.985461 seconds and 4 git commands to generate.