From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29298 invoked by alias); 7 Jul 2011 13:51:13 -0000 Received: (qmail 29287 invoked by uid 22791); 7 Jul 2011 13:51:12 -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; Thu, 07 Jul 2011 13:50:58 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p67Doo1F016477 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 7 Jul 2011 09:50:51 -0400 Received: from host1.jankratochvil.net (ovpn-113-91.phx2.redhat.com [10.3.113.91]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p67DomqM032178 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 7 Jul 2011 09:50:50 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p67DolS8020685; Thu, 7 Jul 2011 15:50:47 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p67DokAT020684; Thu, 7 Jul 2011 15:50:46 +0200 Date: Thu, 07 Jul 2011 14:03:00 -0000 From: Jan Kratochvil To: sami wagiaalla Cc: Pedro Alves , gdb-patches@sourceware.org, Tom Tromey , Phil Muldoon Subject: Re: [patch] Support inferior events in python Message-ID: <20110707135046.GA20307@host1.jankratochvil.net> References: <20110209163022.GA16069@host1.dyn.jankratochvil.net> <4D55559B.1090004@redhat.com> <201102111556.42026.pedro@codesourcery.com> <4D59662D.30101@redhat.com> <20110216111054.GA3594@host1.dyn.jankratochvil.net> <20110706193742.GA4463@host1.jankratochvil.net> <4E15B86A.1090701@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E15B86A.1090701@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-07/txt/msg00237.txt.bz2 On Thu, 07 Jul 2011 15:45:14 +0200, sami wagiaalla wrote: > On 07/06/2011 03:37 PM, Jan Kratochvil wrote: > > As Pedro asked > > http://sourceware.org/ml/gdb-patches/2011-02/msg00213.html > > > Actually, do you really need non-stop? > > > > I also do not think the testcases should / need to test the non-stop mode. > > But currently it cannot test thread id in all-stop/sync mode, therefore I have > > filed it as PR and kept the testcases in non-stop/async mode: > > http://sourceware.org/bugzilla/show_bug.cgi?id=12967 > > Yes, as you have concluded non-stop/async was needed to test thread > id. It did not even occur to me that thread id should be available > on all-stop because all threads are actually stopped. The event > expresses that all threads are stopped by not setting thread id. I still believe event.inferior_thread should be there even in all-stop/sync mode, the event occured for that thread. Whether the Python script can find out the information also elsewhere or not I do not think that matters. Sure it is more about some design style than any real bug so there can be different opinions. That PR python/12967 above is up to Phil now. Thanks, Jan