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 5620269..4ba4d28 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.
 2014-02-20  Doug Evans  <xdje42@gmail.com>
 
        * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
index ff56554..0f70277 100644 (file)
@@ -1199,7 +1199,6 @@ read_dbx_symtab (struct objfile *objfile)
   char *namestring;
   int nsl;
   int past_first_source_file = 0;
   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;
   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;
                }
              else
                past_first_source_file = 1;
-             last_o_file_start = nlist.n_value;
            }
          else
            goto record_it;
            }
          else
            goto record_it;