]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix two out-of-date comments
authorTom Tromey <tom@tromey.com>
Fri, 28 Aug 2020 17:07:36 +0000 (11:07 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 28 Aug 2020 17:07:36 +0000 (11:07 -0600)
While looking at psymtabs again, I noticed a couple of outdated
comments.  These days, psymtabs can be destroyed, as they are no
longer obstack-allocated.

gdb/ChangeLog
2020-08-28  Tom Tromey  <tom@tromey.com>

* xcoffread.c (xcoff_end_psymtab): Update comment.
* dbxread.c (dbx_end_psymtab): Update comment.

gdb/ChangeLog
gdb/dbxread.c
gdb/xcoffread.c

index 034c95ac31c8404d30cba914de46863797f1bb68..b9f4d48856ca183db866d2cab53d4d44529d7c23 100644 (file)
@@ -1,3 +1,8 @@
+2020-08-28  Tom Tromey  <tom@tromey.com>
+
+       * xcoffread.c (xcoff_end_psymtab): Update comment.
+       * dbxread.c (dbx_end_psymtab): Update comment.
+
 2020-08-28  Tom de Vries  <tdevries@suse.de>
 
        PR breakpoint/26544
index 2df9f5c4d0476e225503e3f1bb4b3962ea4107af..e76bf702b3815cba8badbcd4392dcf320b132064 100644 (file)
@@ -2047,8 +2047,7 @@ dbx_end_psymtab (struct objfile *objfile, legacy_psymtab *pst,
       && pst->n_static_syms == 0
       && has_line_numbers == 0)
     {
-      /* Throw away this psymtab, it's empty.  We can't deallocate it, since
-         it is on the obstack, but we can forget to chain it on the list.  */
+      /* Throw away this psymtab, it's empty.  */
       /* Empty psymtabs happen as a result of header files which don't have
          any symbols in them.  There can be a lot of them.  But this check
          is wrong, in that a psymtab with N_SLINE entries but nothing else
index a792c0fea2eaf8e369fd5474c73bcf2e40b7a2bd..389678aa5b7310a509193ec148971c40fcb9fc59 100644 (file)
@@ -2038,8 +2038,7 @@ xcoff_end_psymtab (struct objfile *objfile, legacy_psymtab *pst,
       && pst->n_global_syms == 0
       && pst->n_static_syms == 0)
     {
-      /* Throw away this psymtab, it's empty.  We can't deallocate it, since
-         it is on the obstack, but we can forget to chain it on the list.  */
+      /* Throw away this psymtab, it's empty.  */
       /* Empty psymtabs happen as a result of header files which don't have
          any symbols in them.  There can be a lot of them.  */