Stuck on threading

Alexandre Julliard julliard at
Tue Apr 8 12:32:52 CDT 2003

Mike Hearn <m.hearn at> writes:

> Is there any way of switching to a wine thread using gdb to get a
> backtrace? Is there a sneakier approach I can use to find out why thread
> 18 has apparently deadlocked? There is probably a race condition here -
> this program will start some times but not others :(

You can attach to a specific thread with gdb, but you have to specify
its unix pid, you can't use the wine thread id of course, gdb doesn't
know about that. You can see the unix pid of a thread with +server, or
simply attach to each thread until you find the right one...

Alexandre Julliard
julliard at

More information about the wine-devel mailing list