* i386-tdep.c (i386_match_insn_block): Use length of the proper
[deliverable/binutils-gdb.git] / gdb / mipsread.c
index cac10e61904d261adfa64d62afa47830f317a0fb..1cd32996dcc43b8e3b77518e831385be49746be5 100644 (file)
@@ -1,7 +1,7 @@
 /* Read a symbol table in MIPS' format (Third-Eye).
 
    Copyright (C) 1986, 1987, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996,
-   1998, 1999, 2000, 2001, 2003, 2004, 2007, 2008, 2009
+   1998, 1999, 2000, 2001, 2003, 2004, 2007, 2008, 2009, 2010, 2011
    Free Software Foundation, Inc.
 
    Contributed by Alessandro Forin (af@cs.cmu.edu) at CMU.  Major work
@@ -42,6 +42,8 @@
 #include "elf/internal.h"
 #include "elf/mips.h"
 
+#include "psymtab.h"
+
 static void
 read_alphacoff_dynamic_symtab (struct section_offsets *,
                               struct objfile *objfile);
@@ -90,7 +92,7 @@ mipscoff_symfile_read (struct objfile *objfile, int symfile_flags)
   read_alphacoff_dynamic_symtab (objfile->section_offsets, objfile);
 
   /* Install any minimal symbols that have been collected as the current
-     minimal symbols for this objfile. */
+     minimal symbols for this objfile.  */
 
   install_minimal_symbols (objfile);
   do_cleanups (back_to);
@@ -108,7 +110,7 @@ mipscoff_symfile_finish (struct objfile *objfile)
    standard COFF section.  The ELF format for the symbols differs from
    the format defined in elf/external.h.  It seems that a normal ELF
    32-bit format is used, and the representation only changes because
-   longs are 64-bit on the alpha. In addition, the handling of
+   longs are 64-bit on the alpha.  In addition, the handling of
    text/data section indices for symbols is different from the ELF
    ABI.  As the BFD linker currently does not support dynamic linking
    on the alpha, there seems to be no reason to pollute BFD with
@@ -238,7 +240,7 @@ read_alphacoff_dynamic_symtab (struct section_offsets *section_offsets,
                                 (file_ptr) 0, got_secsize))
     return;
 
-  /* Find the number of local GOT entries and the index for the the
+  /* Find the number of local GOT entries and the index for the
      first dynamic symbol in the GOT.  */
   for (dyninfo_p = dyninfo_secptr, dyninfo_end = dyninfo_p + dyninfo_secsize;
        dyninfo_p < dyninfo_end;
@@ -339,7 +341,7 @@ read_alphacoff_dynamic_symtab (struct section_offsets *section_offsets,
        }
       else
        {
-         /* Symbols defined in the executable itself. We only care
+         /* Symbols defined in the executable itself.  We only care
             about them if this is a stripped executable, otherwise
             they have been retrieved from the normal symbol table
             already.  */
@@ -388,18 +390,19 @@ read_alphacoff_dynamic_symtab (struct section_offsets *section_offsets,
 
 /* Initialization.  */
 
-static struct sym_fns ecoff_sym_fns =
+static const struct sym_fns ecoff_sym_fns =
 {
   bfd_target_ecoff_flavour,
-  mipscoff_new_init,           /* sym_new_init: init anything gbl to entire symtab */
-  mipscoff_symfile_init,       /* sym_init: read initial info, setup for sym_read() */
-  mipscoff_symfile_read,       /* sym_read: read a symbol file into symtab */
-  mipscoff_symfile_finish,     /* sym_finish: finished with file, cleanup */
-  default_symfile_offsets,     /* sym_offsets: dummy FIXME til implem sym reloc */
-  default_symfile_segments,    /* sym_segments: Get segment information from
-                                  a file.  */
-  NULL,                         /* sym_read_linetable */
-  NULL                         /* next: pointer to next struct sym_fns */
+  mipscoff_new_init,           /* init anything gbl to entire symtab */
+  mipscoff_symfile_init,       /* read initial info, setup for sym_read() */
+  mipscoff_symfile_read,       /* read a symbol file into symtab */
+  NULL,                                /* sym_read_psymbols */
+  mipscoff_symfile_finish,     /* finished with file, cleanup */
+  default_symfile_offsets,     /* dummy FIXME til implem sym reloc */
+  default_symfile_segments,    /* Get segment information from a file.  */
+  NULL,
+  default_symfile_relocate,    /* Relocate a debug section.  */
+  &psym_functions
 };
 
 /* Provide a prototype to silence -Wmissing-prototypes.  */
This page took 0.025055 seconds and 4 git commands to generate.