How do I get a call's return value

46 views
Skip to first unread message

eleven110807

unread,
Apr 27, 2012, 1:05:06 AM4/27/12
to dynamorio-users
 
Hi,
   I want to get the return value of a call from the eax register.But the call instruction is the last one of a basic block.
   How do I get it?

Thanks a lot;
--
Best Regards~
Liang Shuhuan



网易Lofter,专注兴趣,分享创作!

Reid Kleckner

unread,
Apr 27, 2012, 8:01:34 AM4/27/12
to dynamor...@googlegroups.com
The easiest way is to use drwrap:

Get the PC of the function you want to wrap and pass it to drwrap_wrap().

Reid

--
You received this message because you are subscribed to the Google Groups "DynamoRIO Users" group.
To post to this group, send email to dynamor...@googlegroups.com.
To unsubscribe from this group, send email to dynamorio-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dynamorio-users?hl=en.

Reply all
Reply to author
Forward
0 new messages