From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8317 invoked by alias); 3 Mar 2010 22:14:19 -0000 Received: (qmail 8296 invoked by uid 22791); 3 Mar 2010 22:14:18 -0000 X-SWARE-Spam-Status: No, hits=-7.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 03 Mar 2010 22:14:14 +0000 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o23MECvA008389 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 3 Mar 2010 17:14:13 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o23MEBEW002763; Wed, 3 Mar 2010 17:14:12 -0500 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o23ME55Z027422; Wed, 3 Mar 2010 17:14:11 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id A6AB0379963; Wed, 3 Mar 2010 15:14:05 -0700 (MST) From: Tom Tromey To: "Elmenthaler\, Jens" Cc: Subject: Re: MI Interface and Pretty Print to_string() result References: <58596C4646708B4BB990C4483997333001C49D91@usplmvpbe001.ent.rt.verigy.net> Reply-To: tromey@redhat.com Date: Wed, 03 Mar 2010 22:14:00 -0000 In-Reply-To: <58596C4646708B4BB990C4483997333001C49D91@usplmvpbe001.ent.rt.verigy.net> (Jens Elmenthaler's message of "Tue, 23 Feb 2010 01:53:19 -0600") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (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: 2010-03/txt/msg00020.txt.bz2 >>>>> "Jens" == Elmenthaler, Jens writes: Sorry I didn't reply to this sooner. Jens> If I see that right, there is no way to obtain the result of the Jens> to_string() method from a pretty printer for a dynamic variable Jens> object that is a child of another dynamic variable object. Yeah. Jens> -var-evaluate-expression returns "{...}" for anything that has Jens> children, and in order to use -data-evaluate-expression, I must be Jens> able to provide an expression that denotes the variable Jens> object. This however, seems not possible for dynamic variable Jens> objects that are a direct or indirect child of another dynamic Jens> variable object. Jens> Is there some mistake on my side? Nope. I'm afraid this is just an unsolved problem with the pretty-printers. Note that the to_string result is not going to necessarily give you an expression, either. I don't know about -data-evaluate-expression, but we also don't support -var-info-path-expression: http://sourceware.org/bugzilla/show_bug.cgi?id=10252 I haven't looked at this in a while, despite owning the PR, but my recollection is that I didn't even have a good idea for how it could work. Tom