container_of equivalent in gdb-python script
Tom Tromey
tromey@redhat.com
Wed Jun 10 22:17:00 GMT 2009
>>>>> "Jan" == Jan Kiszka <jan.kiszka@web.de> writes:
Jan> Yeah, seen this (in the testsuite). But such objects neither have
Jan> addresses, nor do they help with non-constant objects I'm interested in.
Yeah. You can use this for "offsetof" but it sounds like you wanted
more.
Tom> Whoops, this seems to be undocumented.
Jan> Not the only piece... :)
Please report anything you think is missing. We try very hard to
document the entirety of the Python API; anything missing is due to an
oversight. I will write doc patches for anything you "don't" find ;)
Tom
More information about the Gdb
mailing list