Created
October 28, 2014 03:21
-
-
Save edisonlz/e95e97b331dc16d3b6d9 to your computer and use it in GitHub Desktop.
内存调试gdb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep rw-p /proc/$1/maps | sed -n 's/^\([0-9a-f]*\)-\([0-9a-f]*\) .*$/\1 \2/p' | while read start stop; do; done | |
grep rw-p /proc/25396/maps | |
gdb --batch --pid 25396 -ex "dump memory a.dump 0x2ab09ee3f000 0x2ab176e40000" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment