From: Jim Blandy <jimb@codesourcery.com>
To: Vladimir Prus <ghost@cs.msu.su>
Cc: gdb@sources.redhat.com
Subject: Re: Unnecessary thread_db message?
Date: Wed, 17 Oct 2007 23:04:00 -0000 [thread overview]
Message-ID: <m3przdny0a.fsf@codesourcery.com> (raw)
In-Reply-To: <200710171131.48034.ghost@cs.msu.su> (Vladimir Prus's message of "Wed, 17 Oct 2007 11:31:47 +0400")
Vladimir Prus <ghost at cs.msu.su> writes:
> 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?
At least. I don't think it should be printed at all --- there could
be an 'info' subcommand to show this kind of information, but as you
say, it's not something the user normally cares about.
next prev parent reply other threads:[~2007-10-17 23:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-17 7:32 Vladimir Prus
2007-10-17 23:04 ` Jim Blandy [this message]
2007-10-18 5:39 ` Michael Snyder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3przdny0a.fsf@codesourcery.com \
--to=jimb@codesourcery.com \
--cc=gdb@sources.redhat.com \
--cc=ghost@cs.msu.su \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).