Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Doug Evans" <dje@google.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA] set print symbol-loading on|off
Date: Thu, 24 Jul 2008 11:21:00 -0000	[thread overview]
Message-ID: <E1KLyrn-0002ug-Uc@fencepost.gnu.org> (raw)
In-Reply-To: <e394668d0807231541lf56cd50pdffbef18d0896735@mail.gmail.com> 	(dje@google.com)

> Date: Wed, 23 Jul 2008 15:41:08 -0700
> From: "Doug Evans" <dje@google.com>
> Cc: gdb-patches@sourceware.org
> 
> > > -       printf_unfiltered (_("Reading symbols from %s..."), name);
> > > -       wrap_here ("");
> > > -       gdb_flush (gdb_stdout);
> > > +          if (print_symbol_loading)
> > > +         {
> > > +           printf_unfiltered (_("Reading symbols from %s..."), name);
> > > +           wrap_here ("");
> > > +           gdb_flush (gdb_stdout);
> > > +         }
> >
> > I'm not sure doing this in complete silence is a good idea.  You've
> > shut up GDB, but this phase could take a long time, during which GDB
> > will appear to be hung.  How about printing a single message, like
> > "Reading symbols ..."?
> 
> Any ideas where such a message should be printed? I'm guessing you'd want it
> printed in all the user-commands that might call this lowish-level routine,
> but that's just a guess.

Yes, that'd be a good place.  Or you could it right here, with some
variable keeping track of whether this message was already printed.

> Monkey-see monkey-do hacking from the "set print thread-events" patch.  Any
> suggestions if/how that needs to be enhanced as well?

It could use a similar enhancement, yes, although it does slightly
better than your original text, since it actually gives a few examples
of the events to be announced.

As for how to enhance it, I'd move the list of events to the detailed
description, and make the list exhaustive.  How does that sound?

Thanks.


      parent reply	other threads:[~2008-07-24 11:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-10 20:37 Doug Evans
2008-07-10 21:42 ` Stan Shebs
2008-07-19 22:38 ` Eli Zaretskii
2008-07-23 22:47   ` Doug Evans
     [not found]   ` <e394668d0807231541lf56cd50pdffbef18d0896735@mail.gmail.com>
2008-07-24 11:21     ` Eli Zaretskii [this message]

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=E1KLyrn-0002ug-Uc@fencepost.gnu.org \
    --to=eliz@gnu.org \
    --cc=dje@google.com \
    --cc=gdb-patches@sourceware.org \
    /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