Remove dead code in end_psymtab
authorTom Tromey <tom@tromey.com>
Thu, 3 May 2018 22:36:16 +0000 (16:36 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 26 Jul 2018 15:18:28 +0000 (09:18 -0600)
I noticed that there is a bit of dead code in end_psymtab.
This deletes it.

Normally I would investigate a fix for the code.  However, considering
that the code has been this way a long time (since the first import to
sourceware) and considering that dbxread.c is not as important any
more, I think it's safe to just consider that there's no bug.

gdb/ChangeLog
2018-07-26  Tom Tromey  <tromey@redhat.com>

* dbxread.c (end_psymtab): Remove dead code.

gdb/ChangeLog
gdb/dbxread.c

index 26c1fd4cb8193baac30e19c2090c75d99d0f2b80..4c2058dab9089b0a04bb493c9436cc749edc234b 100644 (file)
@@ -1,3 +1,7 @@
+2018-07-26  Tom Tromey  <tromey@redhat.com>
+
+       * dbxread.c (end_psymtab): Remove dead code.
+
 2018-07-26  Andrew Burgess  <andrew.burgess@embecosm.com>
 
        * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
index d8864f33f9a06e4b06343ee5489f362d04b6ce0d..fe9e842ba1a49a7bf38463e6f33e960abba926da 100644 (file)
@@ -2051,13 +2051,7 @@ dbx_end_psymtab (struct objfile *objfile, struct partial_symtab *pst,
       ALL_OBJFILE_PSYMTABS (objfile, p1)
       {
        if (p1->texthigh == 0 && p1->textlow != 0 && p1 != pst)
-         {
-           p1->texthigh = pst->textlow;
-           /* If this file has only data, then make textlow match
-              texthigh.  */
-           if (p1->textlow == 0)
-             p1->textlow = p1->texthigh;
-         }
+         p1->texthigh = pst->textlow;
       }
     }
 
This page took 0.032229 seconds and 4 git commands to generate.