Re: Finding referents with Gdb

2013-05-01 Thread Skip Montanaro
On Tue, Apr 23, 2013 at 9:52 AM, Dave Butler wrote: > with gdb, can you find referents of an object given an object id? Look at the C code for gc.get_referents and set things up to call it from GDB. Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: Finding referents with Gdb

2013-05-01 Thread Stefan Behnel
Dave Butler, 23.04.2013 16:52: > with gdb, can you find referents of an object given an object id? Have you looked at the gc module? And, could you explain why you want to work with the object's ID instead of the object reference itself? Stefan -- http://mail.python.org/mailman/listinfo/python

Re: Finding referents with Gdb

2013-05-01 Thread dieter
Dave Butler writes: > with gdb, can you find referents of an object given an object id? Usually no. "gdb" is a C level debugger. If debugging information is available (and the type of an object know), "gdb" can show you the fields of an object. If you know the correct type, you can cast an obje