jimingham wrote:

BTW, I agree that the "run one thread, then run all threads" strategy is 
unfortunate.  But I can't think of a better way to do that that's likely to be 
supported on all platforms.  It might be good at some point to add a "Lock 
detection plugin" that could provide enough information to be able to work our 
way past locking issues without requiring this strategy.  That's bound to be 
system specific, so it needs to be a plugin.  But I'm not sanguine that would 
be implementable on all platforms, so we're likely stuck with the current 
strategy.

The next stage in your "run single thread with timeout" feature would be to 
remove RunThreadPlan from Process and replace that with your new machinery.  
That will at least make the code shared and easier to work on.

https://github.com/llvm/llvm-project/pull/108414
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to