* source.c (forget_cached_source_info_for_objfile): Move call to
authorDoug Evans <dje@google.com>
Sun, 6 Nov 2011 04:24:57 +0000 (04:24 +0000)
committerDoug Evans <dje@google.com>
Sun, 6 Nov 2011 04:24:57 +0000 (04:24 +0000)
objfile->sf->qf->forget_cached_source_info outside of
ALL_OBJFILE_SYMTABS loop.
(forget_cached_source_info): Delete unused variable `s'.

gdb/ChangeLog
gdb/source.c

index 094281a39447cca71f7102bd7673fcd34662b241..d00939c8d0c3e0e005b2a342073d39885b46b385 100644 (file)
@@ -1,3 +1,10 @@
+2011-11-05  Doug Evans  <dje@google.com>
+
+       * source.c (forget_cached_source_info_for_objfile): Move call to
+       objfile->sf->qf->forget_cached_source_info outside of
+       ALL_OBJFILE_SYMTABS loop.
+       (forget_cached_source_info): Delete unused variable `s'.
+
 2011-11-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * i386-nat.c (dr_ref_count): Remove unused variable.
index d01dff4e5381c0d04d45ee6302c8cb223d4418e8..6e29172f601d9372c248fa81062972c982ba8e1b 100644 (file)
@@ -355,10 +355,10 @@ forget_cached_source_info_for_objfile (struct objfile *objfile)
          xfree (s->fullname);
          s->fullname = NULL;
        }
-
-      if (objfile->sf)
-       objfile->sf->qf->forget_cached_source_info (objfile);
     }
+
+  if (objfile->sf)
+    objfile->sf->qf->forget_cached_source_info (objfile);
 }
 
 /* Forget what we learned about line positions in source files, and
@@ -369,7 +369,6 @@ void
 forget_cached_source_info (void)
 {
   struct program_space *pspace;
-  struct symtab *s;
   struct objfile *objfile;
 
   ALL_PSPACES (pspace)