如何打印DBX print std :: string?

时间:2015-08-04 18:33:46

标签: c++ solaris dbx

我正在使用Solaris,并希望在dbx中打印stl::string。 我应该使用哪个命令进行打印?打印不起作用。

1 个答案:

答案 0 :(得分:0)

鉴于

std::string str;

这将打印整个对象:

(dbx) print str

在Solaris 11.2上,使用Solaris Studio 12.3,这将只打印std::string的值:

(dbx) print str.__data_.__data_