2009-12-07 Tristan Gingold <gingold@adacore.com>
authorTristan Gingold <gingold@adacore.com>
Mon, 7 Dec 2009 09:47:40 +0000 (09:47 +0000)
committerTristan Gingold <gingold@adacore.com>
Mon, 7 Dec 2009 09:47:40 +0000 (09:47 +0000)
* symfile.h (struct sym_fns): Adjust comment on sym_read.
* symfile.c (syms_from_objfile): Pass all symfile flags to sym_read.
* dbxread.c (dbx_symfile_read): Rename mainline to symfile_flags,
adjust header comment.
* elfread.c (elf_symfile_read): Ditto.
* somread.c (som_symfile_read): Ditto.
* xcoffread.c (xcoff_initial_scan): Ditto.
* coffread.c (coff_symfile_read): Rename mainline to symfile_flags.
* machoread.c (macho_symfile_read): Ditto.
* mipsread.c (mipscoff_symfile_read): Ditto.

gdb/ChangeLog
gdb/coffread.c
gdb/dbxread.c
gdb/elfread.c
gdb/machoread.c
gdb/mipsread.c
gdb/somread.c
gdb/symfile.c
gdb/symfile.h
gdb/xcoffread.c

index 075eee7d3c99350233e938a01aa6c83034925dea..d2785aad5ddfad9c1e75fd26ffdf46cb8179577d 100644 (file)
@@ -1,3 +1,16 @@
+2009-12-07  Tristan Gingold  <gingold@adacore.com>
+
+       * symfile.h (struct sym_fns): Adjust comment on sym_read.
+       * symfile.c (syms_from_objfile): Pass all symfile flags to sym_read.
+       * dbxread.c (dbx_symfile_read): Rename mainline to symfile_flags,
+       adjust header comment.
+       * elfread.c (elf_symfile_read): Ditto.
+       * somread.c (som_symfile_read): Ditto.
+       * xcoffread.c (xcoff_initial_scan): Ditto.
+       * coffread.c (coff_symfile_read): Rename mainline to symfile_flags.
+       * machoread.c (macho_symfile_read): Ditto.
+       * mipsread.c (mipscoff_symfile_read): Ditto.
+
 2009-12-07  Tristan Gingold  <gingold@adacore.com>
 
        * dbxread.c (dbx_symfile_read): No need to test mainline to call
index 1f71db2b3001073f7b88b32f94ac7a75485a0a8a..3f5ff96a1530e0b790a5dd06292308b2daae492b 100644 (file)
@@ -501,7 +501,7 @@ static bfd *symfile_bfd;
 /* Read a symbol file, after initialization by coff_symfile_init.  */
 
 static void
-coff_symfile_read (struct objfile *objfile, int mainline)
+coff_symfile_read (struct objfile *objfile, int symfile_flags)
 {
   struct coff_symfile_info *info;
   struct dbx_symfile_info *dbxinfo;
index a1bd8e0bb13cbac6721de09886308aa8b9e9340c..816a355be526cd4c8d49720878e2471ecc9c6130 100644 (file)
@@ -520,13 +520,10 @@ record_minimal_symbol (char *name, CORE_ADDR address, int type,
 /* Scan and build partial symbols for a symbol file.
    We have been initialized by a call to dbx_symfile_init, which 
    put all the relevant info into a "struct dbx_symfile_info",
-   hung off the objfile structure.
-
-   MAINLINE is true if we are reading the main symbol
-   table (as opposed to a shared lib or dynamically loaded file).  */
+   hung off the objfile structure.  */
 
 static void
-dbx_symfile_read (struct objfile *objfile, int mainline)
+dbx_symfile_read (struct objfile *objfile, int symfile_flags)
 {
   bfd *sym_bfd;
   int val;
index f9052c1204d66b7d24fc5ed5036328701f166ebc..dd844fc8dbf07c66862e76809d813746ae3d94af 100644 (file)
@@ -576,9 +576,6 @@ elf_symtab_read (struct objfile *objfile, int type,
    in each section.  We simplify it down to a single offset for all
    symbols.  FIXME.
 
-   MAINLINE is true if we are reading the main symbol
-   table (as opposed to a shared lib or dynamically loaded file).
-
    This function only does the minimum work necessary for letting the
    user "name" things symbolically; it does not read the entire symtab.
    Instead, it reads the external and static symbols and puts them in partial
@@ -600,7 +597,7 @@ elf_symtab_read (struct objfile *objfile, int type,
    capability even for files compiled without -g.  */
 
 static void
-elf_symfile_read (struct objfile *objfile, int mainline)
+elf_symfile_read (struct objfile *objfile, int symfile_flags)
 {
   bfd *abfd = objfile->obfd;
   struct elfinfo ei;
index e82f12fe0058ea1f9aa8ef268e9f1fe74ab32495..5763cef06cf9376c4cd64cefc995f8686a81ea2c 100644 (file)
@@ -574,7 +574,7 @@ macho_check_dsym (struct objfile *objfile)
 }
 
 static void
-macho_symfile_read (struct objfile *objfile, int mainline)
+macho_symfile_read (struct objfile *objfile, int symfile_flags)
 {
   bfd *abfd = objfile->obfd;
   struct cleanup *back_to;
index a84003fb90147f32c164b344cd7614300e6c47db..cac10e61904d261adfa64d62afa47830f317a0fb 100644 (file)
@@ -67,7 +67,7 @@ mipscoff_symfile_init (struct objfile *objfile)
 /* Read a symbol file from a file.  */
 
 static void
-mipscoff_symfile_read (struct objfile *objfile, int mainline)
+mipscoff_symfile_read (struct objfile *objfile, int symfile_flags)
 {
   bfd *abfd = objfile->obfd;
   struct cleanup *back_to;
index d519d2c5cc259ab401fefb3ac4acaf3ccb3279f5..04f0684846429c213c26a2038ecca8c122ee30c2 100644 (file)
@@ -292,9 +292,6 @@ som_symtab_read (bfd *abfd, struct objfile *objfile,
    SECTION_OFFSETS is a set of offsets to apply to relocate the symbols
    in each section.  This is ignored, as it isn't needed for SOM.
 
-   MAINLINE is true if we are reading the main symbol
-   table (as opposed to a shared lib or dynamically loaded file).
-
    This function only does the minimum work necessary for letting the
    user "name" things symbolically; it does not read the entire symtab.
    Instead, it reads the external and static symbols and puts them in partial
@@ -315,7 +312,7 @@ som_symtab_read (bfd *abfd, struct objfile *objfile,
    capability even for files compiled without -g.  */
 
 static void
-som_symfile_read (struct objfile *objfile, int mainline)
+som_symfile_read (struct objfile *objfile, int symfile_flags)
 {
   bfd *abfd = objfile->obfd;
   struct cleanup *back_to;
index b6356915c091ee8352121a5612006576156a5cee..6e1b915a977191b3809b513fe621832ac5a48a80 100644 (file)
@@ -886,7 +886,7 @@ syms_from_objfile (struct objfile *objfile,
       init_objfile_sect_indices (objfile);
     }
 
-  (*objfile->sf->sym_read) (objfile, mainline);
+  (*objfile->sf->sym_read) (objfile, add_flags);
 
   /* Discard cleanups as symbol reading was successful.  */
 
index 40f7db7176c79c6a2b6becf93cbe16e1c28ea66c..9061009f705ae8ed62323efb8e2c02273ae191ed 100644 (file)
@@ -132,11 +132,10 @@ struct sym_fns
 
   void (*sym_init) (struct objfile *);
 
-  /* sym_read (objfile, mainline) Reads a symbol file into a psymtab
+  /* sym_read (objfile, symfile_flags) Reads a symbol file into a psymtab
      (or possibly a symtab).  OBJFILE is the objfile struct for the
-     file we are reading.  MAINLINE is 1 if this is the main symbol
-     table being read, and 0 if a secondary symbol file (e.g. shared
-     library or dynamically loaded file) is being read.  */
+     file we are reading.  SYMFILE_FLAGS are the flags passed to
+     symbol_file_add & co.  */
 
   void (*sym_read) (struct objfile *, int);
 
index 35d8f1ddcaf41e67c581641b7b81bd023a1ff76b..01dffab663ba91430cd1cb72321f4418794e5857 100644 (file)
@@ -2868,11 +2868,10 @@ xcoff_get_toc_offset (struct objfile *objfile)
 
    SECTION_OFFSETS contains offsets relative to which the symbols in the
    various sections are (depending where the sections were actually loaded).
-   MAINLINE is true if we are reading the main symbol
-   table (as opposed to a shared lib or dynamically loaded file).  */
+*/
 
 static void
-xcoff_initial_scan (struct objfile *objfile, int mainline)
+xcoff_initial_scan (struct objfile *objfile, int symfile_flags)
 {
   bfd *abfd;
   int val;
This page took 0.046796 seconds and 4 git commands to generate.