From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20694 invoked by alias); 29 Jun 2009 17:18:24 -0000 Received: (qmail 20684 invoked by uid 22791); 29 Jun 2009 17:18:24 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-vw0-f204.google.com (HELO mail-vw0-f204.google.com) (209.85.212.204) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 29 Jun 2009 17:18:16 +0000 Received: by vwj42 with SMTP id 42so13099vwj.12 for ; Mon, 29 Jun 2009 10:18:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.99.77 with SMTP id t13mr4274170vcn.31.1246295894081; Mon, 29 Jun 2009 10:18:14 -0700 (PDT) In-Reply-To: References: <629542d40906281214x73c3b505nfeb7e7eecfb1f708@mail.gmail.com> Date: Mon, 29 Jun 2009 17:18:00 -0000 Message-ID: <629542d40906291018i1e76383bn689dc351fdf018d@mail.gmail.com> Subject: Re: Execute code in python pretty printers From: Niko Sams To: gdb Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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/msg00303.txt.bz2 On Mon, Jun 29, 2009 at 19:07, Tom Tromey wrote: >>>>>> "Niko" =3D=3D Niko Sams writes: > > Niko> For QModelIndex I'd like to show the parent QModelIndex as > Niko> child. > > This reads very strangely :) > > Niko> So to find out the parent the method has to be executed. > Niko> Is this possible? > > No, we have not implemented inferior function calls on Value yet. ok, at least this means it should be possible... Is this planned for 7.0? > Note that even when it does work, it is not the friendliest thing to > do. =A0Doing this prevents your pretty-printers from working with core > files. I see. And I guess there is no way around it. But better it works for normal debug session than never. Niko