This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Run process-dies-while-detaching.exp with SW watchpoint
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Wed, 24 Aug 2016 11:27:35 +0100
- Subject: Re: Run process-dies-while-detaching.exp with SW watchpoint
- Authentication-results: sourceware.org; auth=none
- References: <86zio3bkzb.fsf@gmail.com> <2a6bb905-26ad-a496-7fbf-74f99f62a48f@redhat.com>
On Tue, Aug 23, 2016 at 4:20 PM, Pedro Alves <palves@redhat.com> wrote:
>>
>> looks linux-nat target thinks the thread is stopped, but thread-db can't
>> find the thread. Is it a known problem (in gdb or glibc)?
>>
>
> Doesn't this just mean that the process died meanwhile?
> That's the point of the test. /proc/TID/status probably shows
> that the thread is now zombie.
Yes, I know what happened there, but not sure what is the best place
to fix the problem. IIUC, we need to fix GDB somewhere to handle
such case that linux-nat thinks the thread is stopped, but thread-db
can't find it, is it right?
--
Yao (齐尧)