Is there a tool that logs the value the IP register of a specific process running? I am trying to compare the instruction excution before and after a file modification.
Depending on the CPU architecture the process targets, there are many dynamic instrumentation tools that can perform this function. However, you have not specified the environment the process of interest runs in.
Intel's pintool. Someone on stackoverflow has already asked about how to use pintool to print all executed instructions
PANDA. This framework includes a plugin called
PANDA_CB_INSN_TRANSLATEwhich is triggered prior to instruction translation and can be paired with
The DynamoRIO-based tool instrace. "instrace" is short for "instruction trace".