summaryrefslogtreecommitdiff
path: root/gdb/testsuite/config
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2007-04-25 11:38:45 +0000
committerCorinna Vinschen <corinna@vinschen.de>2007-04-25 11:38:45 +0000
commitb7b73cae892a654ad19c33465b866f287b964848 (patch)
treed4bebcc1b9010ccf04240d854190825408ba651b /gdb/testsuite/config
parent495443d4ec9bf03e6a9e1f418593b321aed06816 (diff)
downloadbinutils-gdb-b7b73cae892a654ad19c33465b866f287b964848.tar.gz
* config/sim.exp (gdb_target_sim): Just return with -1 when setting
target sim fails. Return 0 otherwise. (gdb_load): Return prematurely if gdb_target_sim fails.
Diffstat (limited to 'gdb/testsuite/config')
-rw-r--r--gdb/testsuite/config/sim.exp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/testsuite/config/sim.exp b/gdb/testsuite/config/sim.exp
index 9b6a226e044..83c96e0a7e8 100644
--- a/gdb/testsuite/config/sim.exp
+++ b/gdb/testsuite/config/sim.exp
@@ -23,7 +23,6 @@ load_lib gdb.exp
#
proc gdb_target_sim { } {
global gdb_prompt
- global exit_status
set target_sim_options "[board_info target gdb,target_sim_options]";
@@ -37,11 +36,12 @@ proc gdb_target_sim { } {
timeout {
perror "Couldn't set target for simulator."
cleanup
- exit $exit_status
+ return -1
}
}
set timeout 10
verbose "Timeout is now $timeout seconds" 2
+ return 0
}
#
@@ -59,7 +59,7 @@ proc gdb_load { arg } {
if [gdb_file_cmd $arg] then { return -1 }
}
- gdb_target_sim
+ if [gdb_target_sim] then { return -1 }
send_gdb "load\n"
set timeout 2400