Re: Release symbol file

Michael Chastain
2004-09-22T15:16:14Z

Fabian Cenedese <Cenedese@indel.ch> wrote:
> 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.

[mec.gnu@berman gdb]$ gdb-621 --readnow
GNU gdb 6.2.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
(gdb) file /berman/migchain/install/target/native/gdb-6.2.1/bin/gdb
Reading symbols from /berman/migchain/install/target/native/gdb-6.2.1/bin/gdb...expanding to full symbols...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb)

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".

Try it.

Michael