From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13773 invoked by alias); 5 Oct 2004 18:55:59 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 13762 invoked from network); 5 Oct 2004 18:55:58 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 5 Oct 2004 18:55:58 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.10) with ESMTP id i95Itwab014514 for ; Tue, 5 Oct 2004 14:55:58 -0400 Received: from localhost.redhat.com (porkchop.devel.redhat.com [172.16.58.2]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i95Itjr00482; Tue, 5 Oct 2004 14:55:53 -0400 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 7D40128D2; Tue, 5 Oct 2004 14:55:30 -0400 (EDT) Message-ID: <4162EE22.8070001@gnu.org> Date: Tue, 05 Oct 2004 18:57:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040831 MIME-Version: 1.0 To: Fabian Cenedese Cc: gdb@sources.redhat.com Subject: Re: Release symbol file References: <5.2.0.9.1.20040922162849.01d62158@NT_SERVER> <5.2.0.9.1.20040922130725.01d68fe0@NT_SERVER> <5.2.0.9.1.20040922130725.01d68fe0@NT_SERVER> <5.2.0.9.1.20040922162849.01d62158@NT_SERVER> <5.2.0.9.1.20040923082603.01d0d4a8@NT_SERVER> In-Reply-To: <5.2.0.9.1.20040923082603.01d0d4a8@NT_SERVER> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-10/txt/msg00097.txt.bz2 >>>>> Thanks, but what about the MI? I can't give switches to e.g >>>>> -file-exec-and-symbol, can I? I mean, once gdb is started. Or >>>>> do I have to stop and restart gdb every time? >> >>> >>>--readnow is a global flag. It turns on the "read now" behavior >>>on all future calls to symbol_file_add_with_addrs_or_offsets. >>> >>>gdb does keep file descriptors open for the target program, >>>but it ought to have all the symbols in memory after >>>"expanding to full symbols". > > > I'm not concerned about the symbols but about the file access. > Even when started with "gdb --readnow -i mi" and load a file > I can't delete that file anymore. As I want to recreate it without > unloading from gdb I guess I need to make a copy then. How recent is your GDB? Jerome Guitton (2004-08-10) modified GDB so that it would always close these object files. Andrew