* objfiles.h, infcmd.c, symfile.c: Add comments about how various

objfiles get created and when we should blow them away.
This commit is contained in:
Jim Kingdon
1993-10-31 15:46:34 +00:00
parent e6d739ebb5
commit f6c4bf1a82
4 changed files with 38 additions and 5 deletions

View File

@ -149,10 +149,13 @@ struct obj_section {
struct objfile *objfile;
};
/* Master structure for keeping track of each input file from which
gdb reads symbols. One of these is allocated for each such file we
access, e.g. the exec_file, symbol_file, and any shared library object
files. */
/* Master structure for keeping track of each file from which
gdb reads symbols. There are several ways these get allocated: 1.
The main symbol file, symfile_objfile, set by the symbol-file command,
2. Additional symbol files added by the add-symbol-file command,
3. Shared library objfiles, added by ADD_SOLIB, 4. symbol files
for modules that were loaded when GDB attached to a remote system
(see remote-vx.c). */
struct objfile
{