diff options
author | Jim Blandy <jimb@codesourcery.com> | 2006-01-02 04:31:57 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2006-01-02 04:31:57 +0000 |
commit | cb5bf126886985d73d72d260941027fd46701cbb (patch) | |
tree | 3c186b00ecf3a5e7ed5a511372de959467fbc1bf /gdb/xcoffread.c | |
parent | cf2ea672fbf63fc5bfd2043596adf3dbf93ff738 (diff) | |
download | gdb-cb5bf126886985d73d72d260941027fd46701cbb.tar.gz |
2006-01-01 Roger Sayle <roger@eyesopen.com>
Elena Zannoni <ezannoni@redhat.com>
PR symtab/1651
* xcoffread.c (xcoff_next_symbol_text): Check this_symtab_psymtab
for NULL before assigning this_symtab_psymtab->objfile to objfile.
(scan_xcoff_symtab): Initialize next_symbol_text_func.
(Committed by Jim Blandy)
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r-- | gdb/xcoffread.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 08e1a2c5f92..65e5f5f0608 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -868,7 +868,8 @@ xcoff_next_symbol_text (struct objfile *objfile) struct internal_syment symbol; char *retval; /* FIXME: is this the same as the passed arg? */ - objfile = this_symtab_psymtab->objfile; + if (this_symtab_psymtab) + objfile = this_symtab_psymtab->objfile; bfd_coff_swap_sym_in (objfile->obfd, raw_symbol, &symbol); if (symbol.n_zeroes) @@ -2170,6 +2171,7 @@ scan_xcoff_symtab (struct objfile *objfile) last_source_file = NULL; abfd = objfile->obfd; + next_symbol_text_func = xcoff_next_symbol_text; sraw_symbol = ((struct coff_symfile_info *) objfile->deprecated_sym_private)->symtbl; nsyms = ((struct coff_symfile_info *) objfile->deprecated_sym_private)->symtbl_num_syms; |