aboutsummaryrefslogtreecommitdiff
path: root/gdb/paread.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/paread.c
parentdf0393e345d833ce177ce889367f148b90268146 (diff)
downloadgdb-4d57c5995e45877128cd62ccfa4317ed452652fe.zip
gdb-4d57c5995e45877128cd62ccfa4317ed452652fe.tar.gz
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/paread.c')
-rw-r--r--gdb/paread.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/paread.c b/gdb/paread.c
index c79ddb5..95489d9 100644
--- a/gdb/paread.c
+++ b/gdb/paread.c
@@ -487,22 +487,22 @@ pa_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) +
- sizeof (section_offsets->offsets) * (SECT_OFF_MAX-1));
+ sizeof (struct section_offsets)
+ + sizeof (section_offsets->offsets) * (SECT_OFF_MAX-1));
for (i = 0; i < SECT_OFF_MAX; i++)
ANOFFSET (section_offsets, i) = addr;
-
+
return section_offsets;
}
-/* Register that we are able to handle PA object file formats. */
+/* Register that we are able to handle SOM object file formats (does this
+ work for hp300, or just PA? I suspect the latter). */
-/* This is probably a mistake. FIXME. Why can't the HP's use an ordinary
- file format name with an -hppa suffix? */
static struct sym_fns pa_sym_fns =
{
"som", /* sym_name: name or name prefix of BFD target type */