From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23531 invoked by alias); 15 Jun 2009 06:22:36 -0000 Received: (qmail 23521 invoked by uid 22791); 15 Jun 2009 06:22:36 -0000 X-SWARE-Spam-Status: No, hits=2.4 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-qy0-f191.google.com (HELO mail-qy0-f191.google.com) (209.85.221.191) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 15 Jun 2009 06:22:28 +0000 Received: by qyk29 with SMTP id 29so2980501qyk.12 for ; Sun, 14 Jun 2009 23:22:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.44.204 with SMTP id b12mr4250398vcf.101.1245046945992; Sun, 14 Jun 2009 23:22:25 -0700 (PDT) Date: Mon, 15 Jun 2009 06:22:00 -0000 Message-ID: <629542d40906142322h733ad7ffr3d6daeb7b306ff7a@mail.gmail.com> Subject: Modify address of a gdb.Value From: Niko Sams To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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/msg00137.txt.bz2 Hi, I'm trying to write a pretty-printer for Qt QMap using python. QMap uses the following code: static inline Node *concrete(QMapData::Node *node) { return reinterpret_cast(reinterpret_cast(node) - payload()); } How can I do such an operation with gdb.Value? thanks, Niko