how to get caller

28 views
Skip to first unread message

liang fang

unread,
Apr 24, 2022, 12:26:07 PM4/24/22
to DynamoRIO Users
i'm using wrap to catpure func and it works, but how should i get caller. i tried to wrap all of function and i can seartch from back to front.it works in this way,  is that any better idea?

Derek Bruening

unread,
Apr 24, 2022, 12:56:44 PM4/24/22
to liang fang, DynamoRIO Users
Please be more precise: do you mean you're using drwrap?  See drwrap_get_retaddr which directly gives you the caller.

On Sun, Apr 24, 2022 at 12:26 PM liang fang <hunter.f...@gmail.com> wrote:
i'm using wrap to catpure func and it works, but how should i get caller. i tried to wrap all of function and i can seartch from back to front.it works in this way,  is that any better idea?

--
You received this message because you are subscribed to the Google Groups "DynamoRIO Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dynamorio-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dynamorio-users/494531ef-a948-473b-86d7-ee7d4eb489een%40googlegroups.com.

liang fang

unread,
Apr 24, 2022, 10:12:44 PM4/24/22
to DynamoRIO Users
drwrap_get_retaddr is the caller? i think that is ret value.

Derek Bruening

unread,
Apr 27, 2022, 5:34:16 PM4/27/22
to liang fang, DynamoRIO Users
Please, look at the docs.  drwrap_get_retval() is the return value; drwrap_get_retaddr() is the return address.  The docs spell this out.

liang fang

unread,
Apr 28, 2022, 10:00:51 PM4/28/22
to DynamoRIO Users
thanks,it works now
Reply all
Reply to author
Forward
0 new messages