ReadingList:php
簡述:html
gcc -g -o hello hello.c
ulimit -c unlimited
gdb {executable} {dump file} eg. gdb hello core.1324
(gdb) bt //查看出錯時的堆棧
(bt = backtrace .. prints stack strace)
(gdb) frame {num} eg. (gdb) frame 2
and use:
(gdb) info locals //查看局部變量(gdb) info args //查看參數