From 7b5ebade65c04a465dad4ee142ceab85a04124b4 Mon Sep 17 00:00:00 2001 From: Kevin Buettner Date: Thu, 19 Jul 2007 00:41:27 +0000 Subject: [PATCH] * 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. --- gdb/testsuite/ChangeLog | 6 ++++++ gdb/testsuite/config/sid.exp | 8 +++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 8ec0434e34b..7cede727ce9 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2007-07-18 Kevin Buettner + + * 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. + 2007-07-17 Pedro Alves Daniel Jacobowitz diff --git a/gdb/testsuite/config/sid.exp b/gdb/testsuite/config/sid.exp index 99904429755..71144674eb4 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 { -- 2.30.2