Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Sébastien Granjoux" <seb.sfo@free.fr>
To: tromey@redhat.com
Cc: "Sébastien Granjoux" <sebastien.granjoux@free.fr>, gdb@sourceware.org
Subject: Re: How to get raw data with MI when pretty printing is enabled ?
Date: Mon, 21 Jun 2010 20:18:00 -0000	[thread overview]
Message-ID: <4C1FC91F.4000002@free.fr> (raw)
In-Reply-To: <m3y6e8gnkw.fsf@fleche.redhat.com>

Hi Tom,

Le 21/06/2010 22:03, Tom Tromey a écrit :
> You can use -var-set-visualizer to disable pretty-printing of a given
> varobj.

I have tried but it doesn't work.

-var-create - * str_list
^done,name="var1",numchild="3",value="0x9ae2c90",type="GList 
*",thread-id="1",has_more="0"
(gdb)
-enable-pretty-printing
^done
(gdb)
-var-create - * str_list
^done,name="var2",numchild="0",value="{...}",type="GList 
*",thread-id="1",displayhint="array",dynamic="1",has_more="1"
(gdb)
-var-evaluate-expression var2
^done,value="{...}"
(gdb)
-var-evaluate-expression var1
^done,value="0x9ae2c90"
(gdb)
-var-set-visualizer var2 None
^done
(gdb)
-var-evaluate-expression var2
^done,value="{...}"
(gdb)

I would expect value="0x9ae2c90" for the last command. Then, I have use 
gdb version 7.0.50.20091001-cvs, perhaps it's working with the latest one.

Regards,

Sébastien


  reply	other threads:[~2010-06-21 20:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-19  8:32 Sébastien Granjoux
2010-06-19  8:44 ` asmwarrior
2010-06-21 20:03 ` Tom Tromey
2010-06-21 20:18   ` Sébastien Granjoux [this message]
2010-06-21 21:24     ` Tom Tromey
2010-06-22 19:14       ` Sébastien Granjoux
2010-06-22  6:40   ` -var-set-visualizer to dynamically switch pretty print on and off? Elmenthaler, Jens
2010-06-22 15:42     ` Tom Tromey

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=4C1FC91F.4000002@free.fr \
    --to=seb.sfo@free.fr \
    --cc=gdb@sourceware.org \
    --cc=sebastien.granjoux@free.fr \
    --cc=tromey@redhat.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