[pygtk] Occasional gobject assertion errors
Johan Dahlin
jdahlin at async.com.br
Thu Mar 16 23:19:50 WST 2006
> Johan> If you break in gdb, and go to 4th frame (pygobject_emit)
> Johan> and then run PyString_AsString(PyObject_Repr(args)) you
> Johan> should be able to see which object it is running emit()
> Johan> on. Might require debugging symbols.
>
> I can't do that because I don't have a process to debug, but from the
> core file I can poke around and see that the signal being emitted is
> "value_changed" and the argument to that is an array of 11 floats.
> The Gtk and PyGtk libraries were not built with debug symbols however.
> Any idea how to get at pygobject_emit's arguments using the registers?
> It's been ages since I debugged at this level.
print PyString_AsString(PyObject_Repr(*(PyObject*)($ebp+16)))
should print the second argument to the current function on x86
--
Johan Dahlin <jdahlin at async.com.br>
Async Open Source
More information about the pygtk
mailing list