minor cleanup in dbxread.c
authorTom Tromey <tromey@redhat.com>
Thu, 20 Feb 2014 19:14:23 +0000 (12:14 -0700)
committerTom Tromey <tromey@redhat.com>
Thu, 20 Feb 2014 19:17:03 +0000 (12:17 -0700)
I happened to notice that last_o_file_start is write-only in
read_dbx_symtab.  This patch removes it.  Tested by rebuilding.

2014-02-20  Tom Tromey  <tromey@redhat.com>

* dbxread.c (read_dbx_symtab): Remove last_o_file_start.

gdb/ChangeLog
gdb/dbxread.c

index 56202695fefa290984f329f1da71a8758d6d2a41..4ba4d28fa28698c10894e04154e9576736defb73 100644 (file)
@@ -1,3 +1,7 @@
+2014-02-20  Tom Tromey  <tromey@redhat.com>
+
+       * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
+
 2014-02-20  Doug Evans  <xdje42@gmail.com>
 
        * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
index ff56554fcb2ec231cb318c0d5df9bc3a16a7e82d..0f7027746efbc29ea9143ac8655ce92129ffb3a6 100644 (file)
@@ -1199,7 +1199,6 @@ read_dbx_symtab (struct objfile *objfile)
   char *namestring;
   int nsl;
   int past_first_source_file = 0;
-  CORE_ADDR last_o_file_start = 0;
   CORE_ADDR last_function_start = 0;
   struct cleanup *back_to;
   bfd *abfd;
@@ -1391,7 +1390,6 @@ read_dbx_symtab (struct objfile *objfile)
                }
              else
                past_first_source_file = 1;
-             last_o_file_start = nlist.n_value;
            }
          else
            goto record_it;