diff options
author | Doug Evans <dje@google.com> | 2011-11-06 04:24:54 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2011-11-06 04:24:54 +0000 |
commit | d58d57372b095c286e19a6899bdf17814fd59ddc (patch) | |
tree | 27512509df5cf42f10670e44dcbaecc02df52591 /gdb/source.c | |
parent | d7973ddaf188b1014fa2e96ad3f2b81c99c7ed19 (diff) | |
download | gdb-d58d57372b095c286e19a6899bdf17814fd59ddc.tar.gz |
* 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'.
Diffstat (limited to 'gdb/source.c')
-rw-r--r-- | gdb/source.c | 7 |
1 files changed, 3 insertions, 4 deletions
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) |