aboutsummaryrefslogtreecommitdiff
path: root/gdb/xcoffread.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2006-01-02 04:31:57 +0000
committerJim Blandy <jimb@codesourcery.com>2006-01-02 04:31:57 +0000
commit13c763f4972494029fb3245906dae3e9f134d837 (patch)
treeddb31207d32e41fad1083834ee7004000c819431 /gdb/xcoffread.c
parente50f0da18ddbe4c256b04651e3076104a096a49d (diff)
downloadgdb-13c763f4972494029fb3245906dae3e9f134d837.zip
gdb-13c763f4972494029fb3245906dae3e9f134d837.tar.gz
gdb-13c763f4972494029fb3245906dae3e9f134d837.tar.bz2
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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index 08e1a2c..65e5f5f 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;