aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-10-30 20:21:19 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-10-30 20:21:19 +0000
commit4d57c5995e45877128cd62ccfa4317ed452652fe (patch)
treed1845bdb7da496f6d5e0001f57dc870c95fc5d3c /gdb/objfiles.c
parentdf0393e345d833ce177ce889367f148b90268146 (diff)
downloadfsf-binutils-gdb-4d57c5995e45877128cd62ccfa4317ed452652fe.zip
fsf-binutils-gdb-4d57c5995e45877128cd62ccfa4317ed452652fe.tar.gz
fsf-binutils-gdb-4d57c5995e45877128cd62ccfa4317ed452652fe.tar.bz2
* symfile.c (reread_symbols): When re-reading symbols, do all the
right operations ourself, rather than calling symbol_file_command. If we re-read something, call clear_symtab_users not just breakpoint_re_set. * objfiles.h, objfiles.c (build_objfile_section_table): No longer static. * symfile.c (clear_symtab_users): Call clear_pc_function_cache. * coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c, paread.c (*_symfile_offsets): Set objfile->num_sections. * remote.c (remote_wait), symfile.c (syms_from_objfile): Don't muck with objfile->num_sections now that all the symbol readers set it. * elfread.c: Clean up obsolete comment about handling only DWARF. * paread.c: Remove comment about how we should use an "ordinary" file format with an hppa suffix. There is nothing ordinary about SOM.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r--gdb/objfiles.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index b890657..dfac45e 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -92,9 +92,10 @@ add_to_objfile_sections (abfd, asect, objfile_p_char)
}
/* Builds a section table for OBJFILE.
- Returns 0 if OK, 1 on error. */
+ Returns 0 if OK, 1 on error (in which case bfd_error contains the
+ error). */
-static int
+int
build_objfile_section_table (objfile)
struct objfile *objfile;
{
@@ -356,6 +357,8 @@ free_objfile (objfile)
(t->to_detach) (NULL, 0);
}
#endif
+ /* I *think* all our callers call clear_symtab_users. If so, no need
+ to call this here. */
clear_pc_function_cache ();
/* The last thing we do is free the objfile struct itself for the