This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] add support for disabling individual pretty-printers
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.