简体   繁体   中英

Memory Trace with Memory Contents

I'm trying to acquire a memory trace of a run of a simple program where I could see both address and data being read/written , eg W 0x7fffffffd928 4 0xe4d829d0 which would stand for writing a 4-byte value 0xe4d829d0 to the address 0x7fffffffd928 .

There's a tool in Valgrind (Lackey tool) which only gives you the address and data length. Since Valgrind tools' documentation is quite poor, I viewed Valgrind sources but there doesn't seem to be any direct access to the data.

Another possibility seems to be Pin from Intel but after reading its documentation I haven't found anything relevant either.

This seems to be a very simple problem, however, I can't figure out or find any solution. Thanks!

The key function for PIN is PIN_SafeCopy which must be surrounded by PIN_GetLock and PIN_ReleaseLock . See the full functional PIN tool at Philippe Teuwen's blog .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM