From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28641 invoked by alias); 11 Feb 2011 19:19:29 -0000 Received: (qmail 28633 invoked by uid 22791); 11 Feb 2011 19:19:28 -0000 X-SWARE-Spam-Status: No, hits=-6.4 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:19:24 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p1BJJ11U027949 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 11 Feb 2011 14:19:01 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p1BJIvhE014207; Fri, 11 Feb 2011 14:18:58 -0500 Received: from [10.15.16.129] (dhcp-10-15-16-129.yyz.redhat.com [10.15.16.129]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id p1BJIscu009150; Fri, 11 Feb 2011 14:18:55 -0500 Message-ID: <4D558B9D.5090104@redhat.com> Date: Fri, 11 Feb 2011 19:19:00 -0000 From: sami wagiaalla User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: Joel Brobecker CC: Jan Kratochvil , Tom Tromey , gdb-patches@sourceware.org Subject: Re: [patch] Support inferior events in python References: <4D49C69A.20401@redhat.com> <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> In-Reply-To: <20110211155455.GU2384@adacore.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00216.txt.bz2 On 02/11/2011 10:54 AM, Joel Brobecker wrote: >> +send_gdb "run\n" >> +gdb_expect { >> + -re ".*stop reason: signal.* >> +.*stop signal: SIGSEGV.* >> +.*thread num: 3.*" { >> + pass "thread 3 was signalled" >> + } >> + timeout { >> + fail "thread 3 was not signalled" >> + } > > Can you replace send_gdb+gdb_expext by gdb_test_multiple; it even > seems that a simple gdb_test would work, no? > If I understand correctly gdb_test, and gdb_test_multiple test for the gdb prompt after the output, but the printing of the prompt is not reliable in non-stop mode. that is why I am using plain send and expect. Sami