From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 897 invoked by alias); 11 Feb 2011 19:46:15 -0000 Received: (qmail 886 invoked by uid 22791); 11 Feb 2011 19:46:14 -0000 X-SWARE-Spam-Status: No, hits=-6.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 11 Feb 2011 19:46:10 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p1BJjuGE003826 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 11 Feb 2011 14:45:56 -0500 Received: from host1.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p1BJjrrd007878 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 11 Feb 2011 14:45:55 -0500 Received: from host1.dyn.jankratochvil.net (localhost [127.0.0.1]) by host1.dyn.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p1BJjrx2022034; Fri, 11 Feb 2011 20:45:53 +0100 Received: (from jkratoch@localhost) by host1.dyn.jankratochvil.net (8.14.4/8.14.4/Submit) id p1BJjqRS022033; Fri, 11 Feb 2011 20:45:52 +0100 Date: Fri, 11 Feb 2011 19:46:00 -0000 From: Jan Kratochvil To: sami wagiaalla Cc: Joel Brobecker , Tom Tromey , gdb-patches@sourceware.org Subject: Re: [patch] Support inferior events in python Message-ID: <20110211194552.GA21965@host1.dyn.jankratochvil.net> References: <4D4ADA8A.40507@redhat.com> <4D4C5C4D.4070708@redhat.com> <20110209075531.GA24847@host1.dyn.jankratochvil.net> <4D52BE89.2040807@redhat.com> <20110209163022.GA16069@host1.dyn.jankratochvil.net> <4D55559B.1090004@redhat.com> <20110211155455.GU2384@adacore.com> <4D558B9D.5090104@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D558B9D.5090104@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes 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: 2011-02/txt/msg00218.txt.bz2 On Fri, 11 Feb 2011 20:18:53 +0100, sami wagiaalla wrote: > If I understand correctly gdb_test, and gdb_test_multiple test for > the gdb prompt after the output, gdb_test does, gdb_test_multiple does not. You should use gdb_test_multiple. Additionally you could catch both the asynchornous info and $gdb_prompt separately using gdb_test_multiple and exp_continue till you have the both results, no matter in which order they come. That way the testcase would not submit a new command before the previous one has completed. Thanks, Jan