MI: getting qualified type name

Vladimir Prus ghost@cs.msu.su
Thu Apr 13 09:04:00 GMT 2006


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





More information about the Gdb mailing list