* config/obj-aout.h: Fix comment typos.
[deliverable/binutils-gdb.git] / gdb / xcoffread.c
index de23d5d054ab86df3a1eecb2174a7af79f20fc27..6183785db6906236d4ffa6f6f92fd32392b47fcc 100644 (file)
@@ -193,8 +193,6 @@ static void xcoff_symfile_finish (struct objfile *);
 static void xcoff_symfile_offsets (struct objfile *,
                                   struct section_addr_info *addrs);
 
-static void find_linenos (bfd *, sec_ptr, void *);
-
 static char *coff_getfilename (union internal_auxent *, struct objfile *);
 
 static void read_symbol (struct internal_syment *, int);
@@ -1438,10 +1436,10 @@ static struct type *var_symbol_type;
 /* process one xcoff symbol. */
 
 static struct symbol *
-process_xcoff_symbol (register struct coff_symbol *cs, struct objfile *objfile)
+process_xcoff_symbol (struct coff_symbol *cs, struct objfile *objfile)
 {
   struct symbol onesymbol;
-  register struct symbol *sym = &onesymbol;
+  struct symbol *sym = &onesymbol;
   struct symbol *sym2 = NULL;
   char *name, *pp;
 
@@ -1699,7 +1697,7 @@ gotit:
  * mainline code can read the whole thing for efficiency.
  */
 static void
-find_linenos (bfd *abfd, sec_ptr asect, void *vpinfo)
+find_linenos (struct bfd *abfd, struct bfd_section *asect, void *vpinfo)
 {
   struct coff_symfile_info *info;
   int size, count;
@@ -1767,7 +1765,6 @@ xcoff_psymtab_to_symtab_1 (struct partial_symtab *pst)
       old_chain = make_cleanup (really_free_pendings, 0);
 
       read_xcoff_symtab (pst);
-      sort_symtab_syms (pst->symtab);
 
       do_cleanups (old_chain);
     }
@@ -2536,7 +2533,7 @@ scan_xcoff_symtab (struct objfile *objfile)
            if (pst && STREQ (namestring, pst->filename))
              continue;
            {
-             register int i;
+             int i;
              for (i = 0; i < includes_used; i++)
                if (STREQ (namestring, psymtab_include_list[i]))
                  {
@@ -2636,22 +2633,6 @@ scan_xcoff_symtab (struct objfile *objfile)
                                             psymtab_language, objfile);
                        p += 1;
                      }
-#if 0 /* OBSOLETE CFront */
-// OBSOLETE                /* The semantics of C++ state that "struct foo { ... }"
-// OBSOLETE                   also defines a typedef for "foo".  Unfortuantely, cfront
-// OBSOLETE                   never makes the typedef when translating from C++ to C.
-// OBSOLETE                   We make the typedef here so that "ptype foo" works as
-// OBSOLETE                   expected for cfront translated code.  */
-// OBSOLETE                else if (psymtab_language == language_cplus)
-// OBSOLETE                  {
-// OBSOLETE                    /* Also a typedef with the same name.  */
-// OBSOLETE                    add_psymbol_to_list (namestring, p - namestring,
-// OBSOLETE                                         VAR_DOMAIN, LOC_TYPEDEF,
-// OBSOLETE                                         &objfile->static_psymbols,
-// OBSOLETE                                         symbol.n_value, 0,
-// OBSOLETE                                         psymtab_language, objfile);
-// OBSOLETE                  }
-#endif /* OBSOLETE CFront */
                  }
                goto check_enum;
 
@@ -2800,11 +2781,6 @@ scan_xcoff_symtab (struct objfile *objfile)
              case '9':
              case '-':
              case '#':         /* for symbol identification (used in live ranges) */
-#if 0 /* OBSOLETE CFront */
-// OBSOLETE            /* added to support cfront stabs strings */
-// OBSOLETE          case 'Z':         /* for definition continuations */
-// OBSOLETE          case 'P':         /* for prototypes */
-#endif /* OBSOLETE CFront */
                continue;
 
              case ':':
@@ -2903,7 +2879,7 @@ xcoff_initial_scan (struct objfile *objfile, int mainline)
 
       /* Read the .debug section, if present.  */
       {
-       sec_ptr secp;
+       struct bfd_section *secp;
        bfd_size_type length;
        char *debugsec = NULL;
 
This page took 0.025105 seconds and 4 git commands to generate.