From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 92863 invoked by alias); 30 Mar 2019 10:05:23 -0000 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 Received: (qmail 92849 invoked by uid 89); 30 Mar 2019 10:05:23 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-10.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS,URIBL_BLOCKED autolearn=ham version=3.3.1 spammy=!!!, HX-Languages-Length:864, coincidence, HContent-Transfer-Encoding:8bit X-HELO: mailsec111.isp.belgacom.be Received: from mailsec111.isp.belgacom.be (HELO mailsec111.isp.belgacom.be) (195.238.20.107) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 30 Mar 2019 10:05:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skynet.be; i=@skynet.be; q=dns/txt; s=securemail; t=1553940322; x=1585476322; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=SuhpGcaixvzXNRxLZi9ijX6Msdus53RzRer3NgwRzSQ=; b=tBsF9F0VipuFbmy2RMVAOyqUaInhRSKfJfllwQ5ug9CjRO1EzUPckunv 0rFNwywWKLWwm9LajDApwR9NUuooBg==; Received: from 212.135-131-109.adsl-dyn.isp.belgacom.be (HELO md) ([109.131.135.212]) by relay.skynet.be with ESMTP/TLS/AES256-GCM-SHA384; 30 Mar 2019 11:05:13 +0100 Message-ID: <1553940313.1854.0.camel@skynet.be> Subject: Re: [PATCH] infun debug: Use correct target pid From: Philippe Waroquiers To: Alan Hayward , Tom Tromey Cc: "gdb-patches@sourceware.org" , nd Date: Sat, 30 Mar 2019 10:05:00 -0000 In-Reply-To: <4592505B-96DA-443B-B343-00BBBBDB777D@arm.com> References: <20190325161820.15406-1-alan.hayward@arm.com> <875zs6kjq3.fsf@tromey.com> <4592505B-96DA-443B-B343-00BBBBDB777D@arm.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2019-03/txt/msg00760.txt.bz2 On Mon, 2019-03-25 at 16:58 +0000, Alan Hayward wrote: > > On 25 Mar 2019, at 16:21, Tom Tromey wrote: > > > > > > > > > "Alan" == Alan Hayward writes: > > > > Alan> The infrun debug reads the id for the exited thread from the ws value. > > Alan> However, this is always 0, causing an assert in find_inferior_pid. > > > > Alan> Instead, the id should be read from the wait return value. > > > > FWIW this is already being discussed in another thread: > > > > https://sourceware.org/ml/gdb-patches/2019-03/msg00516.html > > > > Tom > > !!! Yes, I totally missed that! Complete coincidence too. > I’ll drop my patch. I have just sent an RFAv2 https://sourceware.org/ml/gdb-patches/2019-03/msg00758.html that fixes the above and improves some other related tracing. Philippe