Code cleanup: Move variable.
authorJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 13 Sep 2013 14:21:03 +0000 (14:21 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 13 Sep 2013 14:21:03 +0000 (14:21 +0000)
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.

gdb/ChangeLog
gdb/symfile.c

index 63d1b5bbf592e6c0ca116c8f01af623d2c9497e3..54c37abcd4a2052a757cd907a32df3e33adcf5a7 100644 (file)
@@ -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.
index 04988867845719950fe697e8bf816289a1697a6c..ac307728b7295bd75fede7de5dd7ac89f209e84e 100644 (file)
@@ -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