On 7/2/14 15:58 , Jono Poff via dtrace-discuss wrote:
> Hi,
> 
> I'd like to access information in a C++ class from the 'this' pointer
> passed as arg0 to the method in a pid probe.
> 
> The class is inherited and I wonder if there's a discussion of
> navigating object layouts in DTrace anywhere.
> 
> I've looked at two pages:
> https://blogs.oracle.com/rweisner/entry/dtrace_and_c_objects
> http://www.oracle.com/technetwork/server-storage/solaris/dtrace-cc-138561.html

You'd want to define a struct in D that matches the memory layout of the
actual C++ object. There's no inherent notion of C++ like object
hierarchies in the D language or CTF.

Robert



-------------------------------------------
dtrace-discuss
Archives: https://www.listbox.com/member/archive/184261/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184261/25769126-e243886f
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769126&id_secret=25769126-8d47a7b2
Powered by Listbox: http://www.listbox.com

Reply via email to