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: Access to "default GDB printer" from Python pretty printers?


>>>>> "Paul" == Paul Pluzhnikov <ppluzhnikov@google.com> writes:

Paul>     # Don't know how to print this kind of sockaddr.
Paul>     # Just do whatever GDB would have done without Python.
Paul>     return gdb.print_value(val)

Paul> Reasonable?

The intent was to allow returning a value to bypass further
pretty-printing.  The value_print / val_print thing messes with this a
little.

But ... I'm working on getting rid of the function-style
pretty-printers altogether, per the note I sent a couple days ago.

I think simply returning the argument from to_string and children
won't work.  We'd need a new way to do this.

Tom


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