aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/lib
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-10-26 08:07:59 +0000
committerNick Clifton <nickc@redhat.com>2004-10-26 08:07:59 +0000
commitfcf640ecb2cd74b58574a9161fa17e420fb1f69a (patch)
tree9e71393aeea1e4833b8227a54772a66aa9a50924 /sim/testsuite/lib
parent1c24292617f940fe96b538352cdd8cbe36af1cc9 (diff)
downloadgdb-fcf640ecb2cd74b58574a9161fa17e420fb1f69a.zip
gdb-fcf640ecb2cd74b58574a9161fa17e420fb1f69a.tar.gz
gdb-fcf640ecb2cd74b58574a9161fa17e420fb1f69a.tar.bz2
(sim_run): Add support for the "rawsid" protocol.
Diffstat (limited to 'sim/testsuite/lib')
-rw-r--r--sim/testsuite/lib/sim-defs.exp13
1 files changed, 10 insertions, 3 deletions
diff --git a/sim/testsuite/lib/sim-defs.exp b/sim/testsuite/lib/sim-defs.exp
index 6a88b9c..07aa6cc 100644
--- a/sim/testsuite/lib/sim-defs.exp
+++ b/sim/testsuite/lib/sim-defs.exp
@@ -109,12 +109,19 @@ proc sim_run { prog sim_opts prog_opts redir options } {
set sim "env $testcase_env $sim"
}
- send_log "$sim $always_opts $SIMFLAGS $sim_opts $prog $prog_opts\n"
+ if { [board_info target sim,protocol] == "sid" } {
+ set cmd ""
+ set sim_opts "$sim_opts -e \"set cpu-loader file [list ${prog}]\""
+ } else {
+ set cmd "$prog"
+ }
+
+ send_log "$sim $always_opts $SIMFLAGS $sim_opts $cmd $prog_opts\n"
if { "$redir" == "" } {
- remote_spawn host "$sim $always_opts $SIMFLAGS $sim_opts $prog $prog_opts"
+ remote_spawn host "$sim $always_opts $SIMFLAGS $sim_opts $cmd $prog_opts"
} else {
- remote_spawn host "$sim $always_opts $SIMFLAGS $sim_opts $prog $prog_opts $redir" writeonly
+ remote_spawn host "$sim $always_opts $SIMFLAGS $sim_opts $cmd $prog_opts $redir" writeonly
}
set result [remote_wait host $testcase_timeout]