From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 33784 invoked by alias); 24 Aug 2016 10:27:39 -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 33764 invoked by uid 89); 24 Aug 2016 10:27:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=died X-HELO: mail-oi0-f50.google.com Received: from mail-oi0-f50.google.com (HELO mail-oi0-f50.google.com) (209.85.218.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 24 Aug 2016 10:27:37 +0000 Received: by mail-oi0-f50.google.com with SMTP id l203so16332187oib.1 for ; Wed, 24 Aug 2016 03:27:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ZneIbdcUpxGab92OZWLqnP4jO08MobVrjQ1unFyn8HQ=; b=UjG/jWj6Y0v0KxydZMoSPzMEL2t5De3/yHoLsXHho5eSRU5NRbJJRm4eJXGwpWmuSY 8CXqzyxyuG5tTgHVAom5+fwohQRjaOihqRDJ7cm/yJKwKH5ZhSNipMfsaZcuG7CHyswU Lvq0Rd607qSkWTeHHeoIrL5i7hf9a+hbEkjU6dUXowJo8Bz2RPrU26C5IFGDKUh0fVgf s4HpXbfVNEgqEm8J0mJd+2ULu47YYHzz0F3fQINFzKri1FyijlEDeRkHwZ5K5MAyzBZ2 ANN1VUruFhe3fNcN64aR4XjrX7h1PYoXS9Rm99zJoqHGVp/RCD+SQbxzqzoK+lvpW5DI a11w== X-Gm-Message-State: AEkooutFK9Mr9xKeDHq21EXRc+eL1pXrTZPVy+dodig+V49/ODutm9CtQuWGqOqYGysRGIctfK0nFKr6BiTDNA== X-Received: by 10.157.43.8 with SMTP id o8mr1966503otb.52.1472034456074; Wed, 24 Aug 2016 03:27:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.207.201 with HTTP; Wed, 24 Aug 2016 03:27:35 -0700 (PDT) In-Reply-To: <2a6bb905-26ad-a496-7fbf-74f99f62a48f@redhat.com> References: <86zio3bkzb.fsf@gmail.com> <2a6bb905-26ad-a496-7fbf-74f99f62a48f@redhat.com> From: Yao Qi Date: Wed, 24 Aug 2016 10:27:00 -0000 Message-ID: Subject: Re: Run process-dies-while-detaching.exp with SW watchpoint To: Pedro Alves Cc: "gdb-patches@sourceware.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2016-08/txt/msg00241.txt.bz2 On Tue, Aug 23, 2016 at 4:20 PM, Pedro Alves 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? --=20 Yao (=E9=BD=90=E5=B0=A7)