Hi Mohnish,
Apologies if this reply is too late to be of any use (I don''t remember
seeing any replies).
Can I suggest that you read a previous exchange on this forum that
looked at extracting the string from a C++ std::string object (which is
essentially the same as the problem you face here I think):
http://www.opensolaris.org/jive/thread.jspa?messageID=75417
Also, have a look at Chapter 33 (User Process Tracing) in the Solaris
Dynamic Tracing Guide as this explains some concepts around user-level
tracing that you may find useful.
If you still have problems, let me know.
Jon.
>Hi ,
>I am new to Dtrace and wanted to trace a C++ function.
>The function definition is as follows ::
>DBConnection::ExecSQL( const DBString& sql)
>
>I wanted to print the value of the argument that is passed i.e
"sql" on
>the entry probe.
>DBString is a custom string class.
>
>
>Can somebody please tell me how to do this.
>I have tried printing arg0.
>
>
>Mohnish Kodnani
>Software Engineer
>EMC CORPORATION
>Ph: 925-600-6067
>
>_______________________________________________
>dtrace-discuss mailing list
>dtrace-discuss at opensolaris.org
>
>