B.R.
unread,Aug 9, 2012, 3:29:48 PM8/9/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DynamoRIO Users
Hello,
I need to trace values written to memory operands and get the written value.
I decided the following scenario (I couldn't get a simpler one):
- At instrumentation time, if memory operands depends on register(s) value:
* Register an analysis callback before the current instruction in order to get the value of reg(s) and compute memory address
* Register an analysis callback before the next instruction (ie after the current one) and use the stored computed addresses to get the wanted memory values
- If there is non dependance on registers, address computing and value gathering could both be done before the next instruction
I now need to decide wether a memory operand has some dependance on register(s).
What is the cleanest and most secure way?
1) Using opnd_is_base_disp
2) Using opnd_num_regs_used
3) Any other way
I am not sure I didn't miss any special case in my scenario. The #2 way shoud do the job if I am correct.
What do you think?
Thanks,
---
B.