This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]