1306196Sjkim/*
2238405Sjkim * Test GDB's ability to read a very large data object from target memory.
3238405Sjkim */
4238405Sjkim
5238405Sjkim#include <string.h>
6238405Sjkim
7238405Sjkim/* A value that will produce a target data object large enough to
8238405Sjkim   crash GDB.  0x200000 is big enough on GNU/Linux, other systems may
9238405Sjkim   need a larger number.  */
10238405Sjkim#ifndef CRASH_GDB
11238405Sjkim#define CRASH_GDB 0x200000
12238405Sjkim#endif
13238405Sjkimstatic int a[CRASH_GDB], b[CRASH_GDB];
14238405Sjkim
15238405Sjkimmain()
16238405Sjkim{
17238405Sjkim  memcpy (a, b, sizeof (a));
18238405Sjkim  return 0;
19238405Sjkim}
20238405Sjkim