Hi,
Currently I am trying to write a tool that does adds some functionality when the address of a write matches a certain address in x86 architecture. Is it possible to add x86 labels to instrumentation? Something like this:
drutil_insert_get_mem_addr(drcontext, ilist, where, dst, reg_tmp, reg_ptr);
INSTR_CREATE_cmp(drcontext, opnd_create_reg(reg_tmp), OPND_CREATE_MEMPTR(INTERESTED_MEMORY))
INTR_CREATE_jcc(drcontext, OP_JNE, GO)
drx_buf_insert_load_buf_ptr(drcontext, buf, ilist, where, reg_ptr);
// ... more code to execute if reg_tmp == INTERESTED_MEMORY)
GO:
// ... continue execution from here whatever the result is
Thanks in advance.