Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@web.de>
To: tromey@redhat.com
Cc: gdb@sourceware.org
Subject: Re: container_of equivalent in gdb-python script
Date: Thu, 11 Jun 2009 09:51:00 -0000	[thread overview]
Message-ID: <4A30D38B.3030603@web.de> (raw)
In-Reply-To: <m3tz2nentr.fsf@fleche.redhat.com>

[-- Attachment #1: Type: text/plain, Size: 902 bytes --]

Tom Tromey wrote:
>>>>>> "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.

Yep, essentially instantiate a gdb.Value object of arbitrary type at an
arbitrary address.

> 
> 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 ;)
> 

I have to correct myself: Actually looking at the right documentation, I
find all the latest features described (I was probably still starring at
6.8 docs...).

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]

      reply	other threads:[~2009-06-11  9:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-10 16:56 Jan Kiszka
2009-06-10 18:57 ` Tom Tromey
2009-06-10 20:10   ` Jan Kiszka
2009-06-10 20:37     ` Tom Tromey
2009-06-10 21:06       ` Jan Kiszka
2009-06-10 20:42     ` Daniel Jacobowitz
2009-06-10 21:33       ` Jan Kiszka
2009-06-10 21:42         ` Tom Tromey
2009-06-10 22:13           ` Jan Kiszka
2009-06-10 22:17             ` Tom Tromey
2009-06-11  9:51               ` Jan Kiszka [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A30D38B.3030603@web.de \
    --to=jan.kiszka@web.de \
    --cc=gdb@sourceware.org \
    --cc=tromey@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox