From 8e46892cd5e4853a197ce44da8d398eb8b38cedb Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Fri, 11 Jun 2010 21:58:20 +0000 Subject: [PATCH] gdb/testsuite/ * lib/gdb.exp (gdb_run_cmd): Return on $gdb_prompt. (runto): Catch "The target does not support running in non-stop mode.". --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/lib/gdb.exp | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index c5cbe9aaddc..9a8ca24be29 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-06-11 Jan Kratochvil + + * lib/gdb.exp (gdb_run_cmd): Return on $gdb_prompt. + (runto): Catch "The target does not support running in non-stop mode.". + 2010-06-11 Michael Snyder * gdb.base/setshow.exp (set language asm): Don't use diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index eb949f8dd2a..833fbf2e6d7 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -290,6 +290,9 @@ proc gdb_run_cmd {args} { exp_continue } -notransfer -re "Starting program: \[^\r\n\]*" {} + -notransfer -re "$gdb_prompt $" { + # There is no more input expected. + } } } @@ -416,6 +419,10 @@ proc runto { function args } { -re "Breakpoint \[0-9\]*, \[0-9xa-f\]* in .*$gdb_prompt $" { return 1 } + -re "The target does not support running in non-stop mode.\r\n$gdb_prompt $" { + unsupported "Non-stop mode not supported" + return 0 + } -re "$gdb_prompt $" { fail "running to $function in runto" return 0 -- 2.30.2