gdb attach 调试时如何保持gdb退出后进程仍运行?
ps 得到我们所需要的进程pid gdb attach pid 开始调试 detach 结束调试
还可以调试core文件,即调试崩溃的程序,这个还没有遇到过,以后再补充