Skip to content

Instantly share code, notes, and snippets.

@edisonlz
Created October 28, 2014 03:21
Show Gist options
  • Save edisonlz/e95e97b331dc16d3b6d9 to your computer and use it in GitHub Desktop.
Save edisonlz/e95e97b331dc16d3b6d9 to your computer and use it in GitHub Desktop.
内存调试gdb
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