From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13155 invoked by alias); 10 Jun 2009 22:17:15 -0000 Received: (qmail 13143 invoked by uid 22791); 10 Jun 2009 22:17:15 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 10 Jun 2009 22:17:09 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n5AMH8xF018801; Wed, 10 Jun 2009 18:17:08 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n5AMH6I7010042; Wed, 10 Jun 2009 18:17:07 -0400 Received: from opsy.redhat.com (vpn-13-36.rdu.redhat.com [10.11.13.36]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n5AMH6We021338; Wed, 10 Jun 2009 18:17:06 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 7B43937816E; Wed, 10 Jun 2009 16:17:04 -0600 (MDT) To: Jan Kiszka Cc: gdb@sourceware.org Subject: Re: container_of equivalent in gdb-python script References: <4A2FE5AB.4060707@siemens.com> <4A30133F.9000909@web.de> <20090610204201.GA17154@caradoc.them.org> <4A30269D.7070504@web.de> <4A302FEB.1060509@web.de> From: Tom Tromey Reply-To: tromey@redhat.com Date: Wed, 10 Jun 2009 22:17:00 -0000 In-Reply-To: <4A302FEB.1060509@web.de> (Jan Kiszka's message of "Thu\, 11 Jun 2009 00\:12\:59 +0200") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-06/txt/msg00102.txt.bz2 >>>>> "Jan" == Jan Kiszka 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