$ gdb mtv GNU gdb 4.17 Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux"... (no debugging symbols found)... (gdb)
通常第一個斷點可以設在_start函數處,也可以先運行,中途送中斷信號讓它停下來 (一般可以 kill -18 pid, 18是SIGCONT)做這些之前還可以先看看程序中的函數 (包括使用到的共享庫的函數),特別對于Xwindows應用程序,這點十分重要: (gdb)info functions All defined functions: