aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/huge.exp
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.exp
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.exp')
-rw-r--r--gdb/testsuite/gdb.base/huge.exp8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/huge.exp b/gdb/testsuite/gdb.base/huge.exp
index 733ddee..68354ec 100644
--- a/gdb/testsuite/gdb.base/huge.exp
+++ b/gdb/testsuite/gdb.base/huge.exp
@@ -36,7 +36,13 @@ if [target_info exists gdb,skip_huge_test] {
set testfile "huge"
set srcfile ${testfile}.c
set binfile ${objdir}/${subdir}/${testfile}
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
+
+for { set size [expr 2 * 1024 * 1024] } { $size > 10 } { set size [expr $size / 2] } {
+ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
+ executable [list debug "additional_flags=-DCRASH_GDB=$size"]] \
+ == "" } break
+}
+if { $size < 10 } {
gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
}