From 6f809020fa8347a1a204a5d2b53d3b4654ec8e80 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Sun, 6 Nov 2011 04:24:57 +0000 Subject: [PATCH] * 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'. --- gdb/ChangeLog | 7 +++++++ gdb/source.c | 7 +++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 094281a3944..d00939c8d0c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2011-11-05 Doug Evans + + * 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 * i386-nat.c (dr_ref_count): Remove unused variable. diff --git a/gdb/source.c b/gdb/source.c index d01dff4e538..6e29172f601 100644 --- a/gdb/source.c +++ b/gdb/source.c @@ -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) -- 2.30.2