aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/config/sid.exp
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2007-07-19 00:41:27 +0000
committerKevin Buettner <kevinb@redhat.com>2007-07-19 00:41:27 +0000
commit7b5ebade65c04a465dad4ee142ceab85a04124b4 (patch)
tree90b116ac14bd00ac38541cfdd29b5c7a927451ac /gdb/testsuite/config/sid.exp
parentb93bc0774472d3a89158e0b6d0faf3609e43d049 (diff)
downloadgdb-7b5ebade65c04a465dad4ee142ceab85a04124b4.zip
gdb-7b5ebade65c04a465dad4ee142ceab85a04124b4.tar.gz
gdb-7b5ebade65c04a465dad4ee142ceab85a04124b4.tar.bz2
* config/sid.exp (gdb_load): Add test for empty argument. Adjust
return value to be compatible with gdb_run_cmd in lib/gdb.exp. Remove call to gdb_unload.
Diffstat (limited to 'gdb/testsuite/config/sid.exp')
-rw-r--r--gdb/testsuite/config/sid.exp8
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/testsuite/config/sid.exp b/gdb/testsuite/config/sid.exp
index 9990442..7114467 100644
--- a/gdb/testsuite/config/sid.exp
+++ b/gdb/testsuite/config/sid.exp
@@ -175,8 +175,10 @@ proc gdb_load { arg } {
global gdb_prompt
global retval
- gdb_unload
- if [gdb_file_cmd $arg] then { return -1 }
+ if { $arg != "" } {
+ if [gdb_file_cmd $arg] then { return -1 }
+ }
+
gdb_target_sid
send_gdb "load\n"
@@ -195,7 +197,7 @@ proc gdb_load { arg } {
if $verbose>1 then {
send_user "Loaded $arg into $GDB\n"
}
- set retval 1;
+ set retval 0;
}
-re "$gdb_prompt $" {
if $verbose>1 then {