This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] varobj.c: Report changed values that use a pretty-printer
>>>>> "Nick" == Nick Roberts <nickrob@snap.net.nz> writes:
Nick> No problem, it was only a small patch. Were you aware that
Nick> changed values aren't reported? Does your patch fix the problems
Nick> that I mentioned?
Yeah, it should fix those problems.
Tom> GCC svn trunk has pretty-printers for basically everything in
Tom> libstdc++ :-)
Nick> Cool! Will they be distributed as part of the libstdc++ package
Nick> files? i.e. with future GNU/Linux distributions
Yes, they are installed in a way that lets them auto-activate, if the
distro configures everything properly. We're already doing this in
Fedora 11.
Tom> I'd like to write printers for some other programs (gdb, or gcc, or
Tom> python, or emacs) but haven't found the time ...
Nick> I'm not sure what you mean. I was thinking of writing lisp code
Nick> so that Emacs can parse the output of the pretty printers like the
Nick> ones you describe above.
At least gcc, emacs, and python all have their own complicated .gdbinit
files with commands to help print data structures more nicely. I think
it would be nice to convert these to use the pretty-printer
infrastructure. This provides a couple concrete advantages: it works
better with MI, and it works in stack traces.
Tom