diff options
author | Mark Salter <msalter@sadr.localdomain> | 2001-03-15 18:51:25 +0000 |
---|---|---|
committer | Mark Salter <msalter@sadr.localdomain> | 2001-03-15 18:51:25 +0000 |
commit | 269a569e35a419a2ce4c59d02c906cb868b6e594 (patch) | |
tree | 48f35ed4d22b126cb704102e8e636077f9163d02 | |
parent | 77cd5909d221ee132e3973b74f668abe098a1616 (diff) | |
download | gdb-269a569e35a419a2ce4c59d02c906cb868b6e594.zip gdb-269a569e35a419a2ce4c59d02c906cb868b6e594.tar.gz gdb-269a569e35a419a2ce4c59d02c906cb868b6e594.tar.bz2 |
(gdb_target_cmd): Add explicit error return.
(gdb_target_monitor): Add check of gdb_target_cmd return value.
-rw-r--r-- | gdb/testsuite/config/monitor.exp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/testsuite/config/monitor.exp b/gdb/testsuite/config/monitor.exp index e9a2218..e48d0d9 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; |