mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 18:10:46 +00:00
2002-01-07 Michael Snyder <msnyder@redhat.com>
* gdb.base/huge.exp: New test. Print a very large target data object. (skip_huge_test): New test variable. Define if you want to skip this test. The test reads an 8 megabyte data object from the target, so it might be very time consuming on remote targets with a slow connection. * gdb.base/huge.c: New file. Test case for above.
This commit is contained in:
19
gdb/testsuite/gdb.base/huge.c
Normal file
19
gdb/testsuite/gdb.base/huge.c
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* 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 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;
|
||||
}
|
||||
Reference in New Issue
Block a user