From ec6239dcc2e7a28c2eef459c0e654f25381a6d04 Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Fri, 3 May 1996 23:05:32 +0000 Subject: [PATCH] * sim-gdb.exp: Make the SH simulator allocate less space when it is targeted. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/config/sim-gdb.exp | 13 ++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 3e757edd9ee..a3ab2c24831 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +Fri May 3 16:02:55 1996 Stan Shebs + + * sim-gdb.exp: Make the SH simulator allocate less space when + it is targeted. + Thu May 2 12:31:56 1996 Jeffrey A Law (law@cygnus.com) * gdb.base/mips_pro.exp: Expect failure for hppa*-*-* in backtrace diff --git a/gdb/testsuite/config/sim-gdb.exp b/gdb/testsuite/config/sim-gdb.exp index 6c430cd91b7..821e82fe5a4 100644 --- a/gdb/testsuite/config/sim-gdb.exp +++ b/gdb/testsuite/config/sim-gdb.exp @@ -24,6 +24,16 @@ proc gdb_version {} { default_gdb_version } +# The SH simulator by default will allocate 16M of memory, which is +# convenient, but it slows down testing to chew up that much swap; +# so supply an option that makes the simulator allocate 256K. + +set target_sim_options "" + +if [istarget "sh*-*-*"] then { + set target_sim_options "18" +} + # # gdb_target_sim # Set gdb to target the simulator @@ -33,6 +43,7 @@ proc gdb_target_sim { } { global prompt global verbose global exit_status + global target_sim_options # force the height to "unlimited", so no pagers get used send "set height 0\n" @@ -41,7 +52,7 @@ proc gdb_target_sim { } { send "set width 0\n" expect -re ".*$prompt $" {} - send "target sim\n" + send "target sim $target_sim_options\n" set timeout 60 expect { -re "Connected to the simulator.*$prompt $" { -- 2.30.2