* sim-gdb.exp: Make the SH simulator allocate less space when

it is targeted.
This commit is contained in:
Stan Shebs 1996-05-03 23:05:32 +00:00
parent 08dc78ad19
commit ec6239dcc2
2 changed files with 17 additions and 1 deletions

View file

@ -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

View file

@ -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 $" {