From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31991 invoked by alias); 24 Jun 2004 10:52:29 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 31978 invoked from network); 24 Jun 2004 10:52:27 -0000 Received: from unknown (HELO dublin.act-europe.fr) (212.157.227.154) by sourceware.org with SMTP; 24 Jun 2004 10:52:27 -0000 Received: from localhost (province.act-europe.fr [10.10.0.214]) by filtered-dublin.act-europe.fr (Postfix) with ESMTP id 3B5E7229F5C; Thu, 24 Jun 2004 12:52:26 +0200 (MET DST) Received: from dublin.act-europe.fr ([10.10.0.154]) by localhost (province.act-europe.fr [10.10.0.214]) (amavisd-new, port 10024) with ESMTP id 93888-06; Thu, 24 Jun 2004 12:52:26 +0200 (CEST) Received: from berne.act-europe.fr (berne.act-europe.fr [10.10.0.165]) by dublin.act-europe.fr (Postfix) with ESMTP id 0CACB229E98; Thu, 24 Jun 2004 12:52:26 +0200 (MET DST) Received: by berne.act-europe.fr (Postfix, from userid 560) id E1BAE592B; Thu, 24 Jun 2004 07:52:25 -0400 (EDT) Date: Thu, 24 Jun 2004 10:52:00 -0000 From: Jerome Guitton To: Andrew Cagney Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] win32: bfd_cache_close after kill Message-ID: <20040624115225.GA26199@act-europe.fr> References: <20040524115048.GA27758@act-europe.fr> <20040617132031.GA10371@act-europe.fr> <40D1FB3F.3060904@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40D1FB3F.3060904@gnu.org> User-Agent: Mutt/1.4i X-Virus-Scanned: by amavisd-new at act-europe.fr X-SW-Source: 2004-06/txt/msg00512.txt.bz2 Andrew Cagney (cagney@gnu.org): > >>When the inferior is killed, it is safe the release the different file > >>>handles that BFD keeps open. It is particularly useful on Win32 (and > >>>presumably on HP UX) to be able to recompile and restart a new debugging > >>>session without quitting GDB... > > > > > >New implementation, using bfd_cache_close_all. No regression on i686 > >linux. OK to apply? > > Can it now go in the symbol-table reader that opened the file? Andrew, sorry for this late answer, it's hard to find some time these days... The problem is that I tried to do the change in the symbol-table reader, but I have several regressions that I need to investigate before submitting a patch. I am afraid that I won't have much time to look at them in the coming days, but I will ASAP. In the meantime, maybe we can integrate the easy part (kill). I think it is worth it, the documentation already refers to this feature: "The kill command is also useful if you wish to recompile and relink your program, since on many systems it is impossible to modify an executable file while it is running in a process. In this case, when you next type run, GDB notices that the file has changed, and reads the symbol table again (while trying to preserve your current breakpoint settings). " -- Jerome