Project

General

Profile

Bug #12900

dtrace uses forward declaration instead of userland type

Added by Michael Zeller 5 months ago.

Status:
New
Priority:
Normal
Category:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

While debugging an issue I hit a case where dtrace was using resolving my type to the forward declaration rather than the actual userland type I was trying to cast to.

pid$target::mevent_handle_pe:entry
{
        self->m = (struct mevent *)args[0]->portev_user;
}

Trying to use the print() action showed:

1  86700          mevent_handle_pe:return struct mevent <forward decl>

To get around this I had to do the following:

self->m = (userland struct pid`mevent *)args[0]->portev_user;

No data to display

Also available in: Atom PDF