blob: e84b97a88a0dbd507b04aeb60831b9ac0d53b386 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/*
* Test GDB's ability to read a very large data object from target memory.
*/
/*
* A value that will produce a target data object
* large enough to crash GDB. 0x200000 is big enough
* on Linux, other systems may need a larger number.
*/
#define CRASH_GDB 0x200000
static int a[CRASH_GDB], b[CRASH_GDB];
main()
{
memcpy (a, b, sizeof (a));
return 0;
}
|