This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] add support for disabling individual pretty-printers


>>>>> "Doug" == Doug Evans <dje@google.com> writes:

Doug> As discussed in irc, I'd like to add support for disabling
Doug> individual pretty-printers.  Broken printers do get installed
Doug> and/or the underlying data structures do change with developers
Doug> not always updating the pretty-printer.  When this happens
Doug> the consequences to a user's debugging session can be severe enough
Doug> that IMO we need to do *something*.

I was thinking that we could perhaps automatically disable any printer
that ever throws an exception.

That is pretty drastic though.

Doug> The approach below uses the presence of an "enabled" attribute
Doug> on the lookup function (or callable object!) to control the
Doug> enabling/disabling.

Doug> Ok to check in?

Yes, thanks.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]