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