This is the mail archive of the archer@sourceware.org mailing list for the Archer 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: [patch] Fix glitches with libstdc++ pretty printers


On Thu, Dec 18, 2008 at 5:39 PM, Paul Pluzhnikov <ppluzhnikov@google.com> wrote:

> Am I missing an easier way to solve this use case?

Hmm, an easy way to solve this would be to say that if Foo inherits
from Bar, and if Bar has a pretty-printer but Foo doesn't, then
the Bar pretty-printer is used.

With that, I only need to define one pretty-printer :)

But I can see how this could be undesirable for other inheritance
hierarchies.

Perhaps a better idea is to introduce a separate list:
gdb.inheritable_pretty_printers[] or some such?

Thanks,
-- 
Paul Pluzhnikov


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