mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
923620278b
Fix PR gdb/378.
18 lines
369 B
C
18 lines
369 B
C
/*
|
|
* 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;
|
|
}
|