M-x gdbemacs
runio
break xxxfunction
continuenext
step (step in the function)gdb
next (step over the function)db
where (check the stack)co
list xxx
在emacs中使用gdb好好處是break時能夠再emacs的另外一個窗口中顯示目前的代碼。
(To be coninued ...)