aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1996-05-03 23:05:32 +0000
committerStan Shebs <shebs@codesourcery.com>1996-05-03 23:05:32 +0000
commitec6239dcc2e7a28c2eef459c0e654f25381a6d04 (patch)
tree8dd68cc0c12e68d7f1814c09f936a8263e7f2a44 /gdb
parent08dc78ad19ff0475c2609661f894b6d4f182fb87 (diff)
downloadgdb-ec6239dcc2e7a28c2eef459c0e654f25381a6d04.zip
gdb-ec6239dcc2e7a28c2eef459c0e654f25381a6d04.tar.gz
gdb-ec6239dcc2e7a28c2eef459c0e654f25381a6d04.tar.bz2
* sim-gdb.exp: Make the SH simulator allocate less space when
it is targeted.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/config/sim-gdb.exp13
2 files changed, 17 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 3e757ed..a3ab2c2 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+Fri May 3 16:02:55 1996 Stan Shebs <shebs@andros.cygnus.com>
+
+ * 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 6c430cd..821e82f 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 $" {