clayborg wrote:

So after looking further into the, the issue is that 
`SBProcess::GetNumThreads()` and `SBProcess::GetThreadAtIndex()` will ignore 
the process stop locker and return stale data. If the run lock can't be 
acquired, it will not allow the thread list to update, but will return the 
previous stops' thread list. Most APIs will return nothing if we are running, 
not sure why we would ever want to get stale data, but that is what we are 
returning. So we need to avoid calling any such APIs by making lldb-dap track 
if the process is running manually in the DAP global structure, and check the 
lldb-dap's notion of wether we are running and if so, return nothing for 
threads. 

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

Reply via email to