GNOME Bugzilla – Bug 595619
Include gdb pretty printers
Last modified: 2009-09-21 13:39:39 UTC
Recent gdb versions allow you to write auto-loading python macros that do things like pretty printing and backtrace filtering. Having a basic set of such macros shipping with glib would be nice. I started this, adding runtime type info to gobject pointers and signal emission backtrace cleanup. For example: (gdb) new-backtrace
+ Trace 217676
This is using the gdb shipping with Fedora 11. This gets even better if the gcc from Fedora 12 is used as the VTA stuff in that makes debug info more reliable.
Created attachment 143466 [details] [review] Initial support for gdb python macros This includes support for gobject pointer pretty printing and signal frame compression in backtraces.
Looks like a very useful thing, and doesn't affect the rest of glib at all, so I'm all for it. One thing I would ask for is that you add a paragraph or two to docs/reference/glib/running.sgml explaining what this is, how one uses it, and what gdb version is required to use it.
commited with additions and some docs, will blog about this to tell people about it.