2 --- Getting GDB debugging process debugging and running programs deadlock debugging

Run the program debugging:

1, ps -aux | process grep xxx, queries to the debugger id

2, gdb xxx pid or

gdb 

attach pid

3, you can set breakpoints

4, after the commissioning program can continue to run

Deadlock debugging process:

info threads: what can the process thread

 

Guess you like

Origin www.cnblogs.com/cuckoocommon/p/12547332.html