This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
How to determine the thread holding a mutex?
- From: xxhdx1985126 <xxhdx1985126 at 163 dot com>
- To: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Tue, 10 Jan 2017 18:34:32 +0800 (CST)
- Subject: How to determine the thread holding a mutex?
- Authentication-results: sourceware.org; auth=none
Hi, everyone.
I'm trying to debug a problem that appears to be a deadlock. I wonder if I can use gdb to find out which thread is holding a mutex. If so, my work would be much easier, as there are many threads in my program.
Please help me, Thank you:-)