* xcoffread.c (xcoff_next_symbol_text): New function.
authorJim Kingdon <jkingdon@engr.sgi.com>
Wed, 30 Mar 1994 22:38:58 +0000 (22:38 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Wed, 30 Mar 1994 22:38:58 +0000 (22:38 +0000)
(read_xcoff_symtab): Set next_symbol_text_func to it.
Move raw_symbol outside of read_xcoff_symtab.

gdb/xcoffread.c

index e4dd816d3ed7f06fe231b2a9d1541c9fbdac536e..314982f7be73b4c86ec9784f8bad880750c16828 100644 (file)
@@ -985,10 +985,10 @@ xcoff_next_symbol_text ()
     {"Unexpected symbol continuation", 0, 0};
 
   bfd_coff_swap_sym_in (current_objfile->obfd, raw_symbol, &symbol);
-  if (symbol->n_zeroes)
+  if (symbol.n_zeroes)
     complain (&msg);
-  else if (symbol->n_sclass & 0x80)
-    return debugsec + symbol->n_offset;
+  else if (symbol.n_sclass & 0x80)
+    return debugsec + symbol.n_offset;
   else
     complain (&msg);
   raw_symbol += coff_data (current_objfile->obfd)->local_symesz;