diff options
author | Michael Snyder <msnyder@vmware.com> | 2002-01-08 01:00:10 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2002-01-08 01:00:10 +0000 |
commit | 21b9b5b1ca05619ad399b3d746e71e844ab1bb2b (patch) | |
tree | 0c8d54313416bd30b7d1ef83e1d14e0b3036314c /gdb/testsuite/gdb.base/huge.c | |
parent | 94cd915f48523bbcbe20f74835d7f5a9d0b3a916 (diff) | |
download | gdb-21b9b5b1ca05619ad399b3d746e71e844ab1bb2b.zip gdb-21b9b5b1ca05619ad399b3d746e71e844ab1bb2b.tar.gz gdb-21b9b5b1ca05619ad399b3d746e71e844ab1bb2b.tar.bz2 |
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.
Diffstat (limited to 'gdb/testsuite/gdb.base/huge.c')
-rw-r--r-- | gdb/testsuite/gdb.base/huge.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/huge.c b/gdb/testsuite/gdb.base/huge.c new file mode 100644 index 0000000..e84b97a --- /dev/null +++ b/gdb/testsuite/gdb.base/huge.c @@ -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; +} |