This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2 1/3] PR remote/19496, internal err forking-threads-plus-bkpt
- From: Pedro Alves <palves at redhat dot com>
- To: Don Breazeal <donb at codesourcery dot com>, gdb-patches at sourceware dot org
- Date: Fri, 12 Feb 2016 20:15:24 +0000
- Subject: Re: [PATCH v2 1/3] PR remote/19496, internal err forking-threads-plus-bkpt
- Authentication-results: sourceware.org; auth=none
- References: <1455150383-12456-1-git-send-email-donb at codesourcery dot com>
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