From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21590 invoked by alias); 4 May 2008 12:19:10 -0000 Received: (qmail 21580 invoked by uid 22791); 4 May 2008 12:19:08 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 04 May 2008 12:18:48 +0000 Received: (qmail 15960 invoked from network); 4 May 2008 12:18:47 -0000 Received: from unknown (HELO localhost) (vladimir@127.0.0.2) by mail.codesourcery.com with ESMTPA; 4 May 2008 12:18:47 -0000 From: Vladimir Prus To: gdb-patches@sourceware.org Subject: Fix MI/async testsuite Date: Sun, 04 May 2008 13:40:00 -0000 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_GmaHI8stWPvSlf/" Message-Id: <200805041618.14962.vladimir@codesourcery.com> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-05/txt/msg00167.txt.bz2 --Boundary-00=_GmaHI8stWPvSlf/ Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-length: 345 My previous patches to add =thread-created have broken MI testsuite in async mode, since in async mode, the order of output is somewhat different and the output for -exec-run is: ^running =thread-created (gdb) with =thread-creating going before prompt, while in sync mode (gdb) follows ^running immediately. Fixed thusly. - Volodya --Boundary-00=_GmaHI8stWPvSlf/ Content-Type: text/x-diff; charset="utf-8"; name="commit.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="commit.diff" Content-length: 1119 Index: ChangeLog =================================================================== RCS file: /cvs/src/src/gdb/testsuite/ChangeLog,v retrieving revision 1.1630 diff -u -p -r1.1630 ChangeLog --- ChangeLog 4 May 2008 04:04:10 -0000 1.1630 +++ ChangeLog 4 May 2008 12:13:45 -0000 @@ -1,3 +1,8 @@ +2008-05-04 Vladimir Prus + + * lib/mi-support.exp (mi_run_cmd): Allow for =thread-created + notification to appear. + 2008-05-04 Daniel Jacobowitz * gdb.base/fullname.c: New file. Index: lib/mi-support.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/lib/mi-support.exp,v retrieving revision 1.59 diff -u -p -r1.59 mi-support.exp --- lib/mi-support.exp 30 Apr 2008 18:25:53 -0000 1.59 +++ lib/mi-support.exp 4 May 2008 12:13:45 -0000 @@ -821,7 +821,7 @@ proc mi_run_cmd {args} { send_gdb "220-exec-run $args\n" gdb_expect { - -re "220\\^running\r\n${mi_gdb_prompt}" { + -re "220\\^running\r\n(=thread-created,id=\"1\"\r\n)?${mi_gdb_prompt}" { } timeout { perror "Unable to start target" --Boundary-00=_GmaHI8stWPvSlf/--