[ubuntu]Debug a running process by gdb

2016-10-9 写技术

1.Find the pid;

ps aux|grep xxxxx


2.Bind;

gdb

(gdb) attach 111111


3.Show stack

(gdb) bt


4.Go next

(gdb)next


5.

(gdb) detach


6.Exit

(gdb)q

标签: ubuntu

发表评论:

Powered by anycle 湘ICP备15001973号-1