From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14928 invoked by alias); 16 Feb 2016 17:21:55 -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 14116 invoked by uid 89); 16 Feb 2016 17:21:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1001, nios X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 16 Feb 2016 17:21:53 +0000 Received: from svr-orw-fem-03.mgc.mentorg.com ([147.34.97.39]) by relay1.mentorg.com with esmtp id 1aVjJu-00015q-Iy from Don_Breazeal@mentor.com ; Tue, 16 Feb 2016 09:21:50 -0800 Received: from [172.30.1.166] (147.34.91.1) by SVR-ORW-FEM-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server (TLS) id 14.3.224.2; Tue, 16 Feb 2016 09:21:50 -0800 Subject: Re: [PATCH v2 1/3] PR remote/19496, internal err forking-threads-plus-bkpt To: Pedro Alves , "gdb-patches@sourceware.org" References: <1455150383-12456-1-git-send-email-donb@codesourcery.com> <56BE3D5C.1060108@redhat.com> From: Don Breazeal Message-ID: <56C35AA9.7010600@codesourcery.com> Date: Tue, 16 Feb 2016 17:21:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <56BE3D5C.1060108@redhat.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-02/txt/msg00483.txt.bz2 On 2/12/2016 12:15 PM, Pedro Alves wrote: > Hi Don, > > On 02/11/2016 12:26 AM, Don Breazeal wrote: > >> On 2/1/2016 12:38 PM, Pedro Alves wrote: > >>> So the fork event has been reported out of target_wait but it was >>> left pending on the infrun side (infrun.c:save_waitstatus) >>> >>> IOW, the fork event hasn't been processed by handle_inferior_event >>> yet, so it hasn't made it to tp->pending_follow yet. >>> >>> The information is not lost, we're just looking for it in the >>> wrong place. I think this would be the right fix: >> >> The fix below is essentially unchanged from your suggested fix. The commit >> message has been updated for the new fix. >> >> Tested on Nios II Linux target with x86 Linux host, and native x86_64 Linux. > > OK. Fine for 7.11 as well. > > I'll need a bit more to think over patches 2 and 3. > > Thanks, > Pedro Alves > Thanks Pedro. Patch 1 is now pushed to mainline and 7.11. --Don