Hi , I am new to the Dtrace and exited by reading the features of Dtrace. I am facing problem in printing local string variable. Consider the following example program written in C++.
Here I want to print the value of variable "name" in "getName() defined inside base class. #include <iostream> #include <string.h> using namespace std; class base { private: string name; public: base(string str):name(str) { } string getName() { return name; } }; int main() { base B("XYZ"); while(true) { sleep(2); cout<<B.getName()<<endl; } } Could anybody help me in finding the answer. Thanks in advance. Regards, Siddu
_______________________________________________ dtrace-discuss mailing list dtrace-discuss@opensolaris.org