Intel Pin application to trace executed instructions and the values of registers used in each instruction (base and index registers for memory accesses are also included)
- Download source code of Intel PT
- Replace source/tools/MyPinTool/MyPinTool.cpp of the native Pin with the one in this repo.
- ia32 architecture
cd source/tools/MyPinTool/;
make all TARGET=ia32
- intel64 architecure
cd source/tools/MyPinTool/;
make all TARGET=intel64
../../../pin -t obj-ia32/MyPinTool.so -o test.log -xmm xmm.log -- /bin/ls
(test.log records the execution traces; xmm.log records the values of xmm registers on crash of the program)