Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Doug Evans <dje@google.com>
To: gdb-patches@sourceware.org
Subject: Re: [RFA] add support for disabling individual pretty-printers
Date: Thu, 20 May 2010 19:57:00 -0000	[thread overview]
Message-ID: <AANLkTimXArZYvaMWlN5i5ziE3iA_tmhL-6dpHWRYm8yY@mail.gmail.com> (raw)
In-Reply-To: <20100520071212.E4A8484398@ruffy.mtv.corp.google.com>

On Thu, May 20, 2010 at 12:12 AM, Doug Evans <dje@google.com> wrote:
> The approach below uses the presence of an "enabled" attribute
> on the lookup function (or callable object!) to control the
> enabling/disabling.

Of course, it may be sufficient to just turn `print-stack' off.  GDB
currently doesn't print anything when it's off - it should probably
print some (minimal) error message.

There's also the issue of wanting to install a different pretty
printer for a value (e.g. a fixed or development version).  That can
be done by inserting the new lookup-function into the head of the
right pretty-printer list.  Is that preferable to disabling the
printer-being-replaced?  I don't know.

I think it would be useful to be able to list all the installed
pretty-printers - once I had that it was easy to provide a way to
disable/enable them - but if you don't want to go this route, fine.


  parent reply	other threads:[~2010-05-20 19:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-20  7:34 Doug Evans
2010-05-20 18:04 ` Eli Zaretskii
2010-05-20 19:57 ` Doug Evans [this message]
2010-06-02 22:41   ` Tom Tromey
2010-06-02 22:41 ` Tom Tromey

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=AANLkTimXArZYvaMWlN5i5ziE3iA_tmhL-6dpHWRYm8yY@mail.gmail.com \
    --to=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