程式編譯時需啟動 debug flag: ex. gcc hello.c -o hello -g
更多進階 GDB 操作 (ex. multithread, signal handler, remote debug ) 可參考 【 [1] Chap. 6, 進階 GDB 】
Reference