diff options
author | Bob Rossi <bob@brasko.net> | 2005-09-11 20:24:54 +0000 |
---|---|---|
committer | Bob Rossi <bob@brasko.net> | 2005-09-11 20:24:54 +0000 |
commit | 40e55befbf32a76e0fe56029b04bfe946a0e3a83 (patch) | |
tree | eca636b80a68f72146b6ebe11da620c279ca6590 /gdb/testsuite/lib | |
parent | 3c7385ece05be8c90506eb49a16a45223d4f736a (diff) | |
download | gdb-40e55befbf32a76e0fe56029b04bfe946a0e3a83.zip gdb-40e55befbf32a76e0fe56029b04bfe946a0e3a83.tar.gz gdb-40e55befbf32a76e0fe56029b04bfe946a0e3a83.tar.bz2 |
2005-09-11 Bob Rossi <bob@brasko.net>
* lib/mi-support.exp (mi_gdb_test): Change -re to not be anchored.
* gdb.mi/mi-syn-frame.exp: Call mi_gdb_test twice instead of once for
commands that return an MI output command and an asyncronous MI output
command.
* gdb.mi/mi-console.exp: Ditto.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r-- | gdb/testsuite/lib/mi-support.exp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/mi-support.exp b/gdb/testsuite/lib/mi-support.exp index e1c7d77..4c1d577 100644 --- a/gdb/testsuite/lib/mi-support.exp +++ b/gdb/testsuite/lib/mi-support.exp @@ -659,7 +659,15 @@ proc mi_gdb_test { args } { gdb_start set result -1 } - -re "\[\r\n\]*($pattern)\[\r\n\]+$mi_gdb_prompt\[ \]*$" { + -re "\[\r\n\]*($pattern)\[\r\n\]+$mi_gdb_prompt\[ \]*" { + # NOTE, there is no trailing anchor because with GDB/MI, + # asynchronous responses can happen at any point, causing more + # data to be available. Normally an anchor is used to make + # sure the end of the output is matched, however, $mi_gdb_prompt + # is just as good of an anchor since mi_gdb_test is meant to + # match a single mi output command. If a second GDB/MI output + # response is sent, it will be in the buffer for the next + # time mi_gdb_test is called. if ![string match "" $message] then { pass "$message" } |