Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: "Elmenthaler\, Jens" <jens.elmenthaler@verigy.com>
Cc: <gdb@sourceware.org>
Subject: Re: MI Interface and Pretty Print to_string() result
Date: Wed, 03 Mar 2010 22:14:00 -0000	[thread overview]
Message-ID: <m34okx3vf6.fsf@fleche.redhat.com> (raw)
In-Reply-To: <58596C4646708B4BB990C4483997333001C49D91@usplmvpbe001.ent.rt.verigy.net> 	(Jens Elmenthaler's message of "Tue, 23 Feb 2010 01:53:19 -0600")

>>>>> "Jens" == Elmenthaler, Jens <jens.elmenthaler@verigy.com> 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


  reply	other threads:[~2010-03-03 22:14 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-23  7:08 How to set default value of yquery and nquery Hui Zhu
2010-02-23  7:53 ` MI Interface and Pretty Print to_string() result Elmenthaler, Jens
2010-03-03 22:14   ` Tom Tromey [this message]
2010-03-04  8:14     ` Elmenthaler, Jens
2010-03-05 23:49       ` Tom Tromey
2010-03-07 10:16         ` Elmenthaler, Jens
2010-03-08 20:17           ` Tom Tromey
2010-02-23 17:13 ` How to set default value of yquery and nquery Tom Tromey
2010-02-24  6:08   ` Marc Khouzam
2010-02-24  9:53     ` Hui Zhu
2010-02-24 16:41       ` Marc Khouzam
2010-02-25 16:26         ` Hui Zhu
2010-02-26  0:23           ` Marc Khouzam
2010-02-26 17:31             ` Hui Zhu
2010-02-24  6:19   ` Hui Zhu

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=m34okx3vf6.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=gdb@sourceware.org \
    --cc=jens.elmenthaler@verigy.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