Fix a couple of comments
authorTom Tromey <tom@tromey.com>
Sun, 10 Mar 2019 21:01:26 +0000 (15:01 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 10 Apr 2019 14:05:17 +0000 (08:05 -0600)
While working on objfiles I noticed a typo in one comment, and another
comment that, as far as I can tell, has been obsolete for a very long
time.

gdb/ChangeLog
2019-04-10  Tom Tromey  <tom@tromey.com>

* symfile.c (reread_symbols): Remove old comment.
* objfiles.c (free_all_objfiles): Fix a typo.

gdb/ChangeLog
gdb/objfiles.c
gdb/symfile.c

index 8b43298be2396dd4126095de1c64f2c5e24f6a6b..7a8338e3402601dba4cd4a0ab7a436bab14df03c 100644 (file)
@@ -1,3 +1,8 @@
+2019-04-10  Tom Tromey  <tom@tromey.com>
+
+       * symfile.c (reread_symbols): Remove old comment.
+       * objfiles.c (free_all_objfiles): Fix a typo.
+
 2019-04-10  Tom Tromey  <tom@tromey.com>
 
        * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
index 1c95e068842a7ee353fe448bf8cbf2b6a8a7fbcb..ada5edc42fab32e6ef61d0a4f1d7cb9fa00c294f 100644 (file)
@@ -699,7 +699,7 @@ free_all_objfiles (void)
 {
   struct so_list *so;
 
-  /* Any objfile referencewould become stale.  */
+  /* Any objfile reference would become stale.  */
   for (so = master_so_list (); so; so = so->next)
     gdb_assert (so->objfile == NULL);
 
index ba82f1b83ca13e1c5b71777dbbc3149cf7fa290a..dd9c4ae985691366e7c3d813d58fdef20c2736c3 100644 (file)
@@ -2432,12 +2432,6 @@ reread_symbols (void)
   int res;
   std::vector<struct objfile *> new_objfiles;
 
-  /* With the addition of shared libraries, this should be modified,
-     the load time should be saved in the partial symbol tables, since
-     different tables may come from different source files.  FIXME.
-     This routine should then walk down each partial symbol table
-     and see if the symbol table that it originates from has been changed.  */
-
   for (objfile *objfile : current_program_space->objfiles ())
     {
       if (objfile->obfd == NULL)
This page took 0.02941 seconds and 4 git commands to generate.