This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[obv] Code cleanup: Move variable


https://sourceware.org/ml/gdb-cvs/2013-09/msg00083.html

--- src/gdb/ChangeLog	2013/09/13 14:17:29	1.15995
+++ src/gdb/ChangeLog	2013/09/13 14:21:03	1.15996
@@ -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.
--- src/gdb/symfile.c	2013/09/05 13:13:25	1.388
+++ src/gdb/symfile.c	2013/09/13 14:21:03	1.389
@@ -2372,7 +2372,6 @@
 	  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 @@
 	  /* 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]