[Lldb-commits] [PATCH] Fix multiple problems of lldb-mi blocking on input monitoring and needing a return.
Hafiz Abid Qadeer
abidh.haq at gmail.com
Thu Feb 12 01:18:51 PST 2015
The real problem is that lldb-mi has a very poor design regarding threading. It is using 3 threads.
1. To wait on input
2. To process commands
3. To handle event.
These problems mostly occur due to interaction of 1 & 2. I also found out that running 2 & 3 at the same time produces race condition so I have put a mutex on them so that they dont run at the same time. The signal handling in totally messed up too. I think lldb-mi should be changed to be a single threaded app (or first 2 threads should be merged at least). It will get rid of a lot of complexity and these problems.
More information about the lldb-commits