How to get raw data with MI when pretty printing is enabled ?

Sébastien Granjoux seb.sfo@free.fr
Mon Jun 21 20:18:00 GMT 2010


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



More information about the Gdb mailing list