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.


http://reviews.llvm.org/D7529

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/



_______________________________________________
lldb-commits mailing list
lldb-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

Reply via email to