aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/huge.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2006-07-04 09:40:28 +0000
committerNathan Sidwell <nathan@codesourcery.com>2006-07-04 09:40:28 +0000
commitf6c957d29dcf36f30d86e6c76501f7d3be03ad9c (patch)
tree3e76a132279084d54d74f9981c42131a7b9bc4ee /gdb/testsuite/gdb.base/huge.c
parent725fbf6c1de47d458091a668495285f56da22d63 (diff)
downloadgdb-f6c957d29dcf36f30d86e6c76501f7d3be03ad9c.zip
gdb-f6c957d29dcf36f30d86e6c76501f7d3be03ad9c.tar.gz
gdb-f6c957d29dcf36f30d86e6c76501f7d3be03ad9c.tar.bz2
* gdb.base/huge.c: Allow CRASH_GDB to be set from command
line. * gdb.base/huge.exp: Loop over compilation to find a size that is acceptable. * gdb.base/remote.exp: Correct expected strings. * gdb.dwarf2/mac-fileno.S: Avoid # comments.
Diffstat (limited to 'gdb/testsuite/gdb.base/huge.c')
-rw-r--r--gdb/testsuite/gdb.base/huge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/huge.c b/gdb/testsuite/gdb.base/huge.c
index 446bb18..27ba04e 100644
--- a/gdb/testsuite/gdb.base/huge.c
+++ b/gdb/testsuite/gdb.base/huge.c
@@ -7,9 +7,9 @@
/* 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. */
-
+#ifndef CRASH_GDB
#define CRASH_GDB 0x200000
-
+#endif
static int a[CRASH_GDB], b[CRASH_GDB];
main()