From 119f94fff1cf10945c8df44b903c2ff430107e68 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Thu, 3 Mar 2011 00:04:48 +1100 Subject: [PATCH] 2011-03-03 Maciej W. Rozycki * lib/remote.exp (remote_expect): Pass all exception conditions up to the caller. --- ChangeLog | 5 +++++ lib/remote.exp | 6 +----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index f333916..3f93c17 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-03-03 Maciej W. Rozycki + + * lib/remote.exp (remote_expect): Pass all exception conditions up + to the caller. + 2011-03-01 Rainer Orth * lib/dg.exp (dg-test): Support nested calls. diff --git a/lib/remote.exp b/lib/remote.exp index abe8b20..8a26518 100644 --- a/lib/remote.exp +++ b/lib/remote.exp @@ -1256,11 +1256,7 @@ proc remote_expect { board timeout args } { if {$code == 1} { return -code error -errorinfo $errorInfo -errorcode $errorCode $string - } elseif {$code == 2} { - return -code return $string - } elseif {$code == 3} { - return - } elseif {$code > 4} { + } else { return -code $code $string } }