[dtrace-discuss] tracing C++ code with args

Matthieu Chase Heimer
Wed, 23 May 2007 08:07:21 -0000

I''m trying to trace Mozilla which is written in C++. I''d like
to see what server URL pages are being loaded from. A problem seems to be that
Mozilla caches content and lookups so the requests don''t always get
down to C calls because of the cache. So I must trace the C++ code.

The C++ method I want is
nsHttpChannel::Init(nsIURI *uri, PRUint8 caps, nsIProxyInfo *proxyInfo)
which is mangled into
__1cNnsHttpChannelEInit6MpnGnsIURI_CpnMnsIProxyInfo__I_

I can see the method firing but how do I use arg0? Can I in any way?
Relevant header is at /usr/sfw/include/mozilla/nsIURI.h
--
This message posted from opensolaris.org