Skip to content

Debug coredump with gdb

使用gdb调试coredump

设置

设置coredump文件最大大小

ulimit -c unlimited

调试

gdb /PATH/TO/BIN /PATH/TO/CORE_DUMP

GDB cheat sheet

/images/GDB-cheatsheet-1.png

/images/GDB-cheatsheet-2.png