aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2013-09-13 14:21:03 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2013-09-13 14:21:03 +0000
commitd3846e71a9f6875851180d62903ac9556495823a (patch)
treed00babf178252d1e79f86d98f94a4091aa77e4fc /gdb/symfile.c
parent4ac33720d6022079e8b038e795e40f0e06a4012c (diff)
downloadgdb-d3846e71a9f6875851180d62903ac9556495823a.zip
gdb-d3846e71a9f6875851180d62903ac9556495823a.tar.gz
gdb-d3846e71a9f6875851180d62903ac9556495823a.tar.bz2
Code cleanup: Move variable.
gdb/ 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com> Code cleanup. * symfile.c (reread_symbols): Move variable obfd_filename to a more inner block.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 0498886..ac30772 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -2372,7 +2372,6 @@ reread_symbols (void)
struct cleanup *old_cleanups;
struct section_offsets *offsets;
int num_offsets;
- char *obfd_filename;
printf_unfiltered (_("`%s' has changed; re-reading symbols.\n"),
objfile->name);
@@ -2426,6 +2425,7 @@ reread_symbols (void)
/* Clean up any state BFD has sitting around. */
{
struct bfd *obfd = objfile->obfd;
+ char *obfd_filename;
obfd_filename = bfd_get_filename (objfile->obfd);
/* Open the new BFD before freeing the old one, so that