From 4d57c5995e45877128cd62ccfa4317ed452652fe Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Sat, 30 Oct 1993 20:21:19 +0000 Subject: * 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. --- gdb/nlmread.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gdb/nlmread.c') diff --git a/gdb/nlmread.c b/gdb/nlmread.c index 70328c9f4e6..2ce4c2e2770 100644 --- a/gdb/nlmread.c +++ b/gdb/nlmread.c @@ -266,7 +266,8 @@ nlm_symfile_offsets (objfile, addr) { struct section_offsets *section_offsets; int i; - + + objfile->num_sections = SECT_OFF_MAX; section_offsets = (struct section_offsets *) obstack_alloc (&objfile -> psymbol_obstack, sizeof (struct section_offsets) + @@ -281,7 +282,7 @@ nlm_symfile_offsets (objfile, addr) } -/* Register that we are able to handle NLM file format. */ +/* Register that we are able to handle NLM file format. */ static struct sym_fns nlm_sym_fns = { -- cgit v1.2.1