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