From 269a569e35a419a2ce4c59d02c906cb868b6e594 Mon Sep 17 00:00:00 2001 From: Mark Salter Date: Thu, 15 Mar 2001 18:51:25 +0000 Subject: [PATCH] (gdb_target_cmd): Add explicit error return. (gdb_target_monitor): Add check of gdb_target_cmd return value. --- gdb/testsuite/config/monitor.exp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.30.2