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]

[patch] (elf_symfile_read): Move debugging printf to more logical location.


Hi.  It's odd to see the "Done reading minimal symbols" message
being printed after some dwarf processing, so I moved it up.

I will check this in in a few days if there are no objections.

2013-02-28  Doug Evans  <dje@google.com>

	* elfread.c (elf_symfile_read): Move debugging printf to more
	logical location.

Index: elfread.c
===================================================================
RCS file: /cvs/src/src/gdb/elfread.c,v
retrieving revision 1.147
diff -u -p -r1.147 elfread.c
--- elfread.c	22 Feb 2013 23:24:24 -0000	1.147
+++ elfread.c	28 Feb 2013 21:59:10 -0000
@@ -1388,6 +1388,9 @@ elf_symfile_read (struct objfile *objfil
 				bfd_section_size (abfd, str_sect));
     }
 
+  if (symtab_create_debug)
+    fprintf_unfiltered (gdb_stdlog, "Done reading minimal symbols.\n");
+
   if (dwarf2_has_info (objfile, NULL))
     {
       /* elf_sym_fns_gdb_index cannot handle simultaneous non-DWARF debug
@@ -1439,9 +1442,6 @@ elf_symfile_read (struct objfile *objfil
 	  do_cleanups (cleanup);
 	}
     }
-
-  if (symtab_create_debug)
-    fprintf_unfiltered (gdb_stdlog, "Done reading minimal symbols.\n");
 }
 
 /* Callback to lazily read psymtabs.  */


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