From: Mark Salter Date: Thu, 15 Mar 2001 18:51:25 +0000 (+0000) Subject: (gdb_target_cmd): Add explicit error return. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=269a569e35a419a2ce4c59d02c906cb868b6e594;p=binutils-gdb.git (gdb_target_cmd): Add explicit error return. (gdb_target_monitor): Add check of gdb_target_cmd return value. --- diff --git a/gdb/testsuite/config/monitor.exp b/gdb/testsuite/config/monitor.exp index e9a22184855..e48d0d94461 100644 --- a/gdb/testsuite/config/monitor.exp +++ b/gdb/testsuite/config/monitor.exp @@ -67,6 +67,7 @@ proc gdb_target_cmd { targetname serialport } { } } } + return 1 } @@ -109,7 +110,7 @@ proc gdb_target_monitor { exec_file } { for {set j 1} {$j <= 2} {incr j} { if [gdb_file_cmd $exec_file] { return -1; } - gdb_target_cmd $targetname $serialport; + if ![gdb_target_cmd $targetname $serialport] { return 0; } gdb_target_exec;