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. */
|
2006-07-04 11:40:28 +02:00
|
|
|
#ifndef CRASH_GDB
|
2002-01-08 02:00:10 +01:00
|
|
|
#define CRASH_GDB 0x200000
|
2006-07-04 11:40:28 +02:00
|
|
|
#endif
|
2002-01-08 02:00:10 +01:00
|
|
|
static int a[CRASH_GDB], b[CRASH_GDB];
|
|
|
|
|
2014-10-28 13:39:22 +01:00
|
|
|
int
|
2002-01-08 02:00:10 +01:00
|
|
|
main()
|
|
|
|
{
|
|
|
|
memcpy (a, b, sizeof (a));
|
|
|
|
return 0;
|
|
|
|
}
|