This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] infun debug: Use correct target pid
- From: Tom Tromey <tom at tromey dot com>
- To: Alan Hayward <Alan dot Hayward at arm dot com>
- Cc: "gdb-patches\@sourceware.org" <gdb-patches at sourceware dot org>, nd <nd at arm dot com>
- Date: Mon, 25 Mar 2019 10:21:56 -0600
- Subject: Re: [PATCH] infun debug: Use correct target pid
- References: <20190325161820.15406-1-alan.hayward@arm.com>
>>>>> "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