diff options
author | Kevin Buettner <kevinb@redhat.com> | 2007-07-19 00:41:27 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2007-07-19 00:41:27 +0000 |
commit | 7b5ebade65c04a465dad4ee142ceab85a04124b4 (patch) | |
tree | 90b116ac14bd00ac38541cfdd29b5c7a927451ac /gdb/testsuite/config | |
parent | b93bc0774472d3a89158e0b6d0faf3609e43d049 (diff) | |
download | gdb-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')
-rw-r--r-- | gdb/testsuite/config/sid.exp | 8 |
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 { |