From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11966 invoked by alias); 15 Jun 2009 17:05:49 -0000 Received: (qmail 11936 invoked by uid 22791); 15 Jun 2009 17:05:48 -0000 X-SWARE-Spam-Status: No, hits=-3.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 15 Jun 2009 17:05:16 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MGFcO-0007sh-It for gdb@sources.redhat.com; Mon, 15 Jun 2009 17:05:12 +0000 Received: from h86-62-88-129.ln.rinet.ru ([86.62.88.129]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Jun 2009 17:05:12 +0000 Received: from vladimir by h86-62-88-129.ln.rinet.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Jun 2009 17:05:12 +0000 To: gdb@sources.redhat.com From: Vladimir Prus Subject: Re: Modify address of a gdb.Value Date: Mon, 15 Jun 2009 17:05:00 -0000 Message-ID: References: <629542d40906142322h733ad7ffr3d6daeb7b306ff7a@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.10.9 X-IsSubscribed: yes 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/msg00149.txt.bz2 Tom Tromey wrote: >>>>>> "Niko" == Niko Sams writes: > > Niko> I'm trying to write a pretty-printer for Qt QMap using python. > > Niko> QMap uses the following code: > Niko> static inline Node *concrete(QMapData::Node *node) { > Niko> return reinterpret_cast(reinterpret_cast(node) - payload()); > Niko> } > > Niko> How can I do such an operation with gdb.Value? > > Nobody has implemented inferior function calls using Value yet. Boo. Is this something hard, or is expected soon? - Volodya