This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] infun debug: Use correct target pid


On Mon, 2019-03-25 at 16:58 +0000, Alan Hayward wrote:
> > On 25 Mar 2019, at 16:21, Tom Tromey <tom@tromey.com> wrote:
> > 
> > > > > > > "Alan" == Alan Hayward <Alan.Hayward@arm.com> 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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]