From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1095 invoked by alias); 23 Sep 2004 06:29:11 -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 1079 invoked from network); 23 Sep 2004 06:29:10 -0000 Received: from unknown (HELO smtp.hispeed.ch) (62.2.95.247) by sourceware.org with SMTP; 23 Sep 2004 06:29:10 -0000 Received: from indel.ch (217-162-27-127.dclient.hispeed.ch [217.162.27.127]) by smtp.hispeed.ch (8.12.6/8.12.6/tornado-1.0) with SMTP id i8N6T9mv003369 for ; Thu, 23 Sep 2004 08:29:09 +0200 Received: from fabi.indel.ch [192.168.1.19] by indel.ch [127.0.0.1] with SMTP (MDaemon.v2.7.SP5.R) for ; Thu, 23 Sep 2004 08:28:16 +0200 Message-Id: <5.2.0.9.1.20040923082603.01d0d4a8@NT_SERVER> X-Sender: cenedese@NT_SERVER (Unverified) Date: Thu, 23 Sep 2004 06:29:00 -0000 To: gdb@sources.redhat.com From: Fabian Cenedese Subject: Re: Release symbol file In-Reply-To: <41519737.nailM2A11D1RE@mindspring.com> 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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-MDaemon-Deliver-To: gdb@sources.redhat.com X-Return-Path: cenedese@indel.ch X-SW-Source: 2004-09/txt/msg00194.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. Thanks bye Fabi