Re: PyObject_Print in gdb

2007-05-15 Thread Chris Miles
I'm still not sure about PyObject_Print, but I found a better solution, using the Misc/gdbinit file from the Python source tree, which defines a pyo macro. Example: (gdb) pyo some_object object : [] type : list refcount: 1 address : 0x4b5940 $3 = void Cheers, Chris On May 15, 2:15 pm, Chris Mil

PyObject_Print in gdb

2007-05-15 Thread Chris Miles
I've been using gdb to debug some Python extension modules lately, which has been very handy, but cannot get PyObject_Print() to work from within gdb, as recommended by http://wingware.com/doc/howtos/debugging-extension-modules-on-linux It recommends using "p PyObject_Print (obj, stderr, 0)" but