1、ps aux | grep mxx.exe
查找可執行程序的進程id
2、gdb attach pid
attach可執行程序的進程pid
3、continue/c 或者continue or c
當attach進程時,會停止進程的運行,這時使進程繼續運行需要使用continue/c命令
4、其他gdb操作(bt b watch etc..)
現在可以使用其他gdb命令來調試了
1、ps aux | grep mxx.exe
查找可執行程序的進程id
2、gdb attach pid
attach可執行程序的進程pid
3、continue/c 或者continue or c
當attach進程時,會停止進程的運行,這時使進程繼續運行需要使用continue/c命令
4、其他gdb操作(bt b watch etc..)
現在可以使用其他gdb命令來調試了
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。