Compares memory between different instances in program execution
To install, just run source <memdiff.py file location>
in gdb.
How to use:
- Ensure the program is running.
- Use
memsnap
to record the current memory state of the program. - Use
memsnap
to record another memory state. - Use
memdiff <memsnap #> <memsnap #>
to view a list of all comparable mappings. - Use
memdiff <memsnap #> <memsnap #> <mapping #>
to view all bytes that have changed.
Using memdiff <memsnap #> <memsnap#>
to view all mappings that've changed between memsnaps.
A more in-depth look at the difference between a mapping identified via the previous command.