2002-01-08 02:00:10 +01:00
|
|
|
/*
|
|
|
|
* Test GDB's ability to read a very large data object from target memory.
|
|
|
|
*/
|
|
|
|
|
2004-01-24 19:25:06 +01:00
|
|
|
#include <string.h>
|
|
|
|
|
2002-02-24 23:56:08 +01:00
|
|
|
/* 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. */
|
2002-01-08 02:00:10 +01:00
|
|
|
|
|
|
|
#define CRASH_GDB 0x200000
|
|
|
|
|
|
|
|
static int a[CRASH_GDB], b[CRASH_GDB];
|
|
|
|
|
|
|
|
main()
|
|
|
|
{
|
|
|
|
memcpy (a, b, sizeof (a));
|
|
|
|
return 0;
|
|
|
|
}
|