how to find deadlock scenario using gdb

Hi,
My application is running smoothly when I debug with breakpoints, but getting blocked at some point while executing, I am expecting the problem might be due to deadlock, but how to find what causing deadlock using gdb. Is there any way to find this.

Thanks,
Charan
When the program deadlocks, attach the debugger to the running process.

gdb <name-of-executable>

In GDB,

attach <pid>

then do a bt (backtrace)
Topic archived. No new replies allowed.