You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
369 B

/*
* Test GDB's ability to read a very large data object from target memory.
*/
/* 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. */
#define CRASH_GDB 0x200000
static int a[CRASH_GDB], b[CRASH_GDB];
main()
{
memcpy (a, b, sizeof (a));
return 0;
}