From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21114 invoked by alias); 8 Jun 2010 12:59:21 -0000 Received: (qmail 21098 invoked by uid 22791); 8 Jun 2010 12:59:19 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 08 Jun 2010 12:59:13 +0000 Received: (qmail 3667 invoked from network); 8 Jun 2010 12:59:11 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 8 Jun 2010 12:59:11 -0000 From: Pedro Alves To: Michael Snyder Subject: Re: [RFA] fix crasher on detach command Date: Tue, 08 Jun 2010 12:59:00 -0000 User-Agent: KMail/1.13.2 (Linux/2.6.32-22-generic; KDE/4.4.2; x86_64; ; ) Cc: "gdb-patches@sourceware.org" References: <4C0D3636.8040206@vmware.com> <201006072012.18043.pedro@codesourcery.com> <4C0D8AA7.5090200@vmware.com> In-Reply-To: <4C0D8AA7.5090200@vmware.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201006081359.09712.pedro@codesourcery.com> X-IsSubscribed: yes 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 X-SW-Source: 2010-06/txt/msg00203.txt.bz2 On Tuesday 08 June 2010 01:11:19, Michael Snyder wrote: > Pedro Alves wrote: > > > To be a bit clearer -- > > > > you've said that the pid was left as 42000 (I assume you meant > > inferior_ptid, but that find_inferior no longer finds that inferior. > > Where is the current inferior getting it's pid cleared out? Why > > aren't we clearing inferior_ptid as well? > > > OK, right. > > remote_close calls discard_all_inferiors -- it should also > set inferior_ptid to null_ptid at the same time. > How's this patch? Yes, that's better. That patch is okay. -- Pedro Alves