aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2004-08-09 13:16:16 +0000
committerDaniel Jacobowitz <drow@false.org>2004-08-09 13:16:16 +0000
commit04f6ecf27956b4fbd0e660dbdd5b5dd9ccab03d9 (patch)
treee53541bb1b272e856dd68c4010079d70aef32c17 /gdb/testsuite/lib
parent54d90d3515309ff2eaae83d9c95d787cefa0a207 (diff)
downloadgdb-04f6ecf27956b4fbd0e660dbdd5b5dd9ccab03d9.zip
gdb-04f6ecf27956b4fbd0e660dbdd5b5dd9ccab03d9.tar.gz
gdb-04f6ecf27956b4fbd0e660dbdd5b5dd9ccab03d9.tar.bz2
PR gdb/1736
* lib/gdb.exp (gdb_test_multiple): Handle return -code return. * gdb.base/sigaltstack.exp (finish_test): Consume output until the prompt. * gdb.base/sigstep.exp: Add KFAIL for gdb/1736.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r--gdb/testsuite/lib/gdb.exp12
1 files changed, 11 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index b71af8d..22893dd 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -700,7 +700,17 @@ proc gdb_test_multiple { command message user_code } {
}
set result 0
- gdb_expect $tmt $code
+ set code [catch {gdb_expect $tmt $code} string]
+ if {$code == 1} {
+ global errorInfo errorCode;
+ return -code error -errorinfo $errorInfo -errorcode $errorCode $string
+ } elseif {$code == 2} {
+ return -code return $string
+ } elseif {$code == 3} {
+ return
+ } elseif {$code > 4} {
+ return -code $code $string
+ }
return $result
}