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]

[commit] Suppress "Using host libthread_db library"


Per Vladimir's suggestion, since everyone seemed in agreement.  I ran
a bunch of GDB's with -batch last week and this was the only output;
and it isn't helpful.  GDB will already warn if it fails to load
libthread_db.

-- 
Daniel Jacobowitz
CodeSourcery

2007-10-25  Daniel Jacobowitz  <dan@codesourcery.com>

	* linux-thread-db.c (check_for_thread_db): Only print if info_verbose.

Index: linux-thread-db.c
===================================================================
RCS file: /cvs/src/src/gdb/linux-thread-db.c,v
retrieving revision 1.34
diff -u -p -r1.34 linux-thread-db.c
--- linux-thread-db.c	23 Aug 2007 18:08:35 -0000	1.34
+++ linux-thread-db.c	25 Oct 2007 22:07:52 -0000
@@ -608,8 +608,9 @@ check_for_thread_db (void)
 	/* Paranoid - don't let a NULL path slip through.  */
 	library = LIBTHREAD_DB_SO;
 
-      printf_unfiltered (_("Using host libthread_db library \"%s\".\n"),
-			 library);
+      if (info_verbose)
+	printf_unfiltered (_("Using host libthread_db library \"%s\".\n"),
+			   library);
       already_loaded = 1;
     }
 


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