From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6174 invoked by alias); 17 Oct 2007 07:32:05 -0000 Received: (qmail 6164 invoked by uid 22791); 17 Oct 2007 07:32:04 -0000 X-Spam-Check-By: sourceware.org Received: from zigzag.lvk.cs.msu.su (HELO zigzag.lvk.cs.msu.su) (158.250.17.23) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 17 Oct 2007 07:31:58 +0000 Received: from Debian-exim by zigzag.lvk.cs.msu.su with spam-scanned (Exim 4.50) id 1Ii3Ne-0000eu-8t for gdb@sources.redhat.com; Wed, 17 Oct 2007 11:31:55 +0400 Received: from localhost ([127.0.0.1] helo=ip6-localhost) by zigzag.lvk.cs.msu.su with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1Ii3Ne-0000eq-27 for gdb@sources.redhat.com; Wed, 17 Oct 2007 11:31:50 +0400 From: Vladimir Prus To: gdb@sources.redhat.com Subject: Unnecessary thread_db message? Date: Wed, 17 Oct 2007 07:32:00 -0000 User-Agent: KMail/1.9.6 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710171131.48034.ghost@cs.msu.su> Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-10/txt/msg00123.txt.bz2 Over in linux-thread-db.c, there's code like this: void check_for_thread_db (void) { /* First time through, report that libthread_db was successfuly loaded. Can't print this in in thread_db_load as, at that stage, the interpreter and it's console haven't started. */ if (!already_loaded) { printf_unfiltered (_("Using host libthread_db library \"%s\".\n"), library); The printf is totally unconditional. When gdb is started with the --quiet option, this line is the only thing printed. The problem is that this message means nothing to ordinary user -- he does not know what's thread_db is, and possibly has no idea if, say, "/lib/tls/i686/cmov/libthread_db.so.1" is the right library to load. This message seems more like debug print -- so can we print it only when some verbose flag is set? - Volodya