-1

I am working on Solaris and would like to print stl::string in dbx. Which command should I use to print it? print is not working.

missimer
  • 4,022
  • 1
  • 19
  • 33
CrazyC
  • 1,840
  • 6
  • 39
  • 60

1 Answers1

0

Given

std::string str;

This will print the entire object:

(dbx) print str

On Solaris 11.2, using Solaris Studio 12.3, this will print just the value of the std::string:

(dbx) print str.__data_.__data_
Andrew Henle
  • 32,625
  • 3
  • 24
  • 56