From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21125 invoked by alias); 8 Apr 2009 16:48:57 -0000 Received: (qmail 21025 invoked by uid 22791); 8 Apr 2009 16:48:52 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 08 Apr 2009 16:48:46 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 7EA832BAC43; Wed, 8 Apr 2009 12:48:43 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id a2OjEgMjTFOZ; Wed, 8 Apr 2009 12:48:43 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 495732BAC42; Wed, 8 Apr 2009 12:48:43 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id CEB91F5A13; Wed, 8 Apr 2009 09:48:39 -0700 (PDT) Date: Wed, 08 Apr 2009 16:48:00 -0000 From: Joel Brobecker To: Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: [patch] release handle on object files after program exits Message-ID: <20090408164839.GD7535@adacore.com> References: <20090403164347.GN16605@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) 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: 2009-04/txt/msg00151.txt.bz2 Hi Tom, > Joel> 2009-04-03 Joel Brobecker > Joel> * target.c (target_mourn_inferior): Call bfd_cache_close_all. > > I wonder how this will interact with the multi-process support. > It seems like too big a hammer. I finally had time to look deeper into this - I came up with the patch while looking at what we did for the "kill" command, so I didn't have to think too much about this. As far as I can tell, things should still be fine, because the file should automatically be re-opened if GDB tries to read from the bfd again. Perhaps we could possibly improve the situation, but I propose we do that if the current approach becomes an actual problem? (in which case we can look at fixing both cases - kill and exit) -- Joel