A few comment cleanups
authorSimon Marchi <simon.marchi@ericsson.com>
Thu, 18 Dec 2014 16:39:44 +0000 (11:39 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Thu, 18 Dec 2014 16:39:44 +0000 (11:39 -0500)
I stumbled upon a few comments that I think are outdated.

Comment for elfread.c (elf_symfile_init): As far as history goes in git,
I don't see anything related to that.

Comment for elfread.c (elf_symfile_read): References a parameter that was
removed in 1999.

Comment for struct sym_fns/sym_offsets: References a parameter that was
changed in 1999.

gdb/ChangeLog:

* elfread.c (elf_symfile_init): Remove stale comment.
(elf_symfile_read): Same.
* symfile.h (struct sym_fns): Same.

gdb/ChangeLog
gdb/elfread.c
gdb/symfile.h

index 348a48fcc00efd49ade50c57164a18baf5036d50..adb24d45c1b4ee465c7fc11a57e0644df7b2ad34 100644 (file)
@@ -1,3 +1,9 @@
+2014-12-18  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * elfread.c (elf_symfile_init): Remove stale comment.
+       (elf_symfile_read): Same.
+       * symfile.h (struct sym_fns): Same.
+
 2014-12-18  Nigel Stephens  <nigel@mips.com>
            Maciej W. Rozycki  <macro@codesourcery.com>
 
index b4ec0677770c864165dd8d36777860996d64698e..93e504521be6764772c0d3454db8ce1d97d73ca0 100644 (file)
@@ -1236,10 +1236,6 @@ elf_read_minimal_symbols (struct objfile *objfile, int symfile_flags,
    We have been initialized by a call to elf_symfile_init, which
    currently does nothing.
 
-   SECTION_OFFSETS is a set of offsets to apply to relocate the symbols
-   in each section.  We simplify it down to a single offset for all
-   symbols.  FIXME.
-
    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
@@ -1418,14 +1414,7 @@ elf_symfile_finish (struct objfile *objfile)
   dwarf2_free_objfile (objfile);
 }
 
-/* ELF specific initialization routine for reading symbols.
-
-   It is passed a pointer to a struct sym_fns which contains, among other
-   things, the BFD for the file whose symbols are being read, and a slot for
-   a pointer to "private data" which we can fill with goodies.
-
-   For now at least, we have nothing in particular to do, so this function is
-   just a stub.  */
+/* ELF specific initialization routine for reading symbols.  */
 
 static void
 elf_symfile_init (struct objfile *objfile)
index 1e8c230db4a17706a4e118c9f3d8609e397fe63c..081bc4e6dfc988cfc21776ccd457bc4b946e4e2d 100644 (file)
@@ -353,12 +353,12 @@ struct sym_fns
 
   void (*sym_finish) (struct objfile *);
 
+
   /* This function produces a file-dependent section_offsets
-     structure, allocated in the objfile's storage, and based on the
-     parameter.  The parameter is currently a CORE_ADDR (FIXME!) for
-     backward compatibility with the higher levels of GDB.  It should
-     probably be changed to a string, where NULL means the default,
-     and others are parsed in a file dependent way.  */
+     structure, allocated in the objfile's storage.
+
+     The section_addr_info structure contains the offset of loadable and
+     allocated sections, relative to the absolute offsets found in the BFD.  */
 
   void (*sym_offsets) (struct objfile *, const struct section_addr_info *);
 
This page took 0.040006 seconds and 4 git commands to generate.