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
- From: Tom Tromey <tromey at redhat dot com>
- To: nickrob at snap dot net dot nz (Nick Roberts)
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 02 Sep 2009 18:08:31 -0600
- Subject: Re: [PATCH] varobj.c: Report changed values that use a pretty-printer
- References: <19103.1108.215005.684662@totara.tehura.co.nz>
- Reply-to: tromey at redhat dot com
>>>>> "Nick" == Nick Roberts <nickrob@snap.net.nz> writes:
Nick> I've had a play with pretty printing in MI and it looks really neat. I've
Nick> got Emacs to display map objects as described on Trom Tromey's page:
Nick> http://tromey.com/blog/?p=546
Nick> There have been a few problems, notably changed values don't seem
Nick> to get reported by -var-update. The patch below seems to fix
Nick> this.
Oops, bad timing ... I have a big patch to redo all this code, as
discussed on the gdb list and the archer list. It is on the
archer-tromey-python branch, but I plan to push it to CVS as soon as
Volodya declares it ready (and as soon as I tidy up the documentation,
my task for tomorrow).
Nick> The scope of this work seems enormous as it opens the possiblity
Nick> of formatting the watch expressions of all STL containers (as,
Nick> ISTR, is already done in Totalview). Of course the amount of work
Nick> it entails is probably enormous too and the problem, as always, is
Nick> finding someone to do it.
GCC svn trunk has pretty-printers for basically everything in libstdc++ :-)
I'd like to write printers for some other programs (gdb, or gcc, or
python, or emacs) but haven't found the time ...
Tom