diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-09-13 14:21:03 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-09-13 14:21:03 +0000 |
commit | 415c7f4af2dca4fd59f0f19a32f711f8e1e62b38 (patch) | |
tree | fc4d90a9d8dd817a36504d8126c17b8d2ffc2e8a /gdb | |
parent | 155ce8e8fd0b5d85b2847702345f3518603b57c9 (diff) | |
download | gdb-415c7f4af2dca4fd59f0f19a32f711f8e1e62b38.tar.gz |
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')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/symfile.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 63d1b5bbf59..54c37abcd4a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com> + + Code cleanup. + * symfile.c (reread_symbols): Move variable obfd_filename to a more + inner block. + 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com> * NEWS: Mention TDB support. diff --git a/gdb/symfile.c b/gdb/symfile.c index 04988867845..ac307728b72 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 |