Gdb
Перейти до навігації
Перейти до пошуку
Dump process to file
#!/bin/bash grep rw-p /proc/$1/maps | sed -n 's/^\([0-9a-f]*\)-\([0-9a-f]*\) .*$/\1 \2/p' | while read start stop; do gdb --batch --pid $1 -ex "dump memory $1-$start- $stop.dump 0x$start 0x$stop"; done
or
gcore pid
PYTHON, GDB AND A VERY LARGE CORE DUMP
libpython – Easier Python Debugging
(gdb) python import libpython (gdb) py-bt
gdbheap – python-friendly memory analyzer
(gdb) python import gdbheap (gdb) heap Missing debuginfo for glibc Suggested fix: debuginfo-install glibc