Commit | Line | Data |
---|---|---|
21b9b5b1 MS |
1 | /* |
2 | * Test GDB's ability to read a very large data object from target memory. | |
3 | */ | |
4 | ||
92362027 AC |
5 | /* A value that will produce a target data object large enough to |
6 | crash GDB. 0x200000 is big enough on GNU/Linux, other systems may | |
7 | need a larger number. */ | |
21b9b5b1 MS |
8 | |
9 | #define CRASH_GDB 0x200000 | |
10 | ||
11 | static int a[CRASH_GDB], b[CRASH_GDB]; | |
12 | ||
13 | main() | |
14 | { | |
15 | memcpy (a, b, sizeof (a)); | |
16 | return 0; | |
17 | } |