This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Debug Operators with GDB Python
>>>>> "Doug" == Doug Evans <dje@google.com> writes:
Doug> On a slightly related note,
Doug> one of the problems of the current pretty-printer implementation is
Doug> that we do a linear search through all printers looking for a match
Doug> every time we go to print something.
Doug> One way to improve on this is to cache the printer found with its type
Doug> (I think - haven't actually tried it).
Doug> I can imagine doing a similar thing with operator/method support if
Doug> the initial implementation proved too slow.
Doug> [It's not the only solution.]
We'd have to make it optional somehow, since nothing constrains
pretty-printers to be type-based right now.
Tom