This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
MI: getting qualified type name
- From: Vladimir Prus <ghost at cs dot msu dot su>
- To: gdb at sources dot redhat dot com
- Date: Thu, 13 Apr 2006 12:20:23 +0400
- Subject: MI: getting qualified type name
Hi,
is it possible, using MI, to obtain fully qualified type of a variable. Say,
I have variable of type std::string. I want KDevelop to invoke special
display code for all variables of that type. However, there's what MI gives
me:
(gdb) -var-create MYTEST * s
^done,name="MYTEST",numchild="2",type="string"
(gdb) -var-info-type MYTEST
The name is not qualified, and it's not repliable to invoke special display
code for all types named 'string'. The only way to obtain the desired
information seems to be 'ptype' command, and parsing output of that CLI
command seems problematic.
Any ideas?
- Volodya