Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #44583

Re: Finding referents with Gdb

From dieter <dieter@handshake.de>
Subject Re: Finding referents with Gdb
Date 2013-05-01 10:33 +0200
References <CANm61jfK-W+rhZz+68va_P7R-j1ddq0-RhLawigC3kc4md=Yxw@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1210.1367397212.3114.python-list@python.org> (permalink)

Show all headers | View raw


Dave Butler <daveb@tanagerproductions.com> 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 object
to this type and get the field information. Thus, "gdb" gives you
a possibility to examine the objects, a given object refers to.
However, in general, there is no data structure (in a C program) that
provides access to the objects that refer to a given object.
In such cases, "gdb" cannot help you to find those objects.


Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Finding referents with Gdb dieter <dieter@handshake.de> - 2013-05-01 10:33 +0200

csiph-web