Aubrey Li wrote:
> 2008/5/9 Rafael Vanoni Wrote:
>> Here's a patch for this one.
>> Simple case of using uint64_t or 32_t for one of the arguments to
>> dtrace_lookup_by_addr.
>>
> 
> I'm not sure you found the root cause.
> There are a few dtrace_lookup_by_addr calls under $(SRC)/lib/libdtrace/common,
> they are always using (uint64_t *) as the pointer type. Any thoughts why?

It's both type and casting. For instance, in 
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libdtrace/common/dt_consume.c#845

There are references to dtrace_lookup_by_addr that always use uint64_t, 
and I'm not sure why they're not checking the bit depth.
Could be either because it's still a private interface, the places that 
use it do the casting by themselves or it's a bug.

thanks
Rafael

Reply via email to