aboutsummaryrefslogtreecommitdiff
path: root/gdb/source.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2011-11-06 04:24:57 +0000
committerDoug Evans <dje@google.com>2011-11-06 04:24:57 +0000
commit6f809020fa8347a1a204a5d2b53d3b4654ec8e80 (patch)
tree425eec2b3a763b770895f972be6e9fd2fe41541f /gdb/source.c
parent6c20f2dc18bf5ba1541b0b0c19222d8c00cb35b5 (diff)
downloadgdb-6f809020fa8347a1a204a5d2b53d3b4654ec8e80.zip
gdb-6f809020fa8347a1a204a5d2b53d3b4654ec8e80.tar.gz
gdb-6f809020fa8347a1a204a5d2b53d3b4654ec8e80.tar.bz2
* 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.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/source.c b/gdb/source.c
index d01dff4..6e29172 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)