From: Andrew Cagney <cagney@gnu.org>
To: Fabian Cenedese <Cenedese@indel.ch>
Cc: gdb@sources.redhat.com
Subject: Re: Release symbol file
Date: Tue, 05 Oct 2004 18:57:00 -0000 [thread overview]
Message-ID: <4162EE22.8070001@gnu.org> (raw)
In-Reply-To: <5.2.0.9.1.20040923082603.01d0d4a8@NT_SERVER>
>>>>> 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
next prev parent reply other threads:[~2004-10-05 18:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-22 11:11 Fabian Cenedese
2004-09-22 14:20 ` Michael Chastain
2004-09-22 14:30 ` Fabian Cenedese
2004-09-22 15:16 ` Michael Chastain
2004-09-23 6:29 ` Fabian Cenedese
2004-10-05 18:57 ` Andrew Cagney [this message]
2004-10-06 6:53 ` Fabian Cenedese
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4162EE22.8070001@gnu.org \
--to=cagney@gnu.org \
--cc=Cenedese@indel.ch \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox