i write pintool dump every instruction pid, thread id, , address. stored @ github gist
however, after ran 1 example, pid of first instruction same pid in main function, not same second or following instructions. output in following:
cerr pid 7292========= cout 7292-0-b777c0d0-mov eax, esp 1c7c-0-b777c0d2-call 0xb777f790 1c7c-0-b777f790-push ebp 1c7c-0-b777f791-mov ebp, esp ......
i don't know why occurs. maybe use pin_getpid api in wrong way. give me advice?
7292 in decimal 0x1c7c in hexadecimal. std::hex maintained across separate invocations of same stream.
just prefix printing of pid std::dec.
Comments
Post a Comment