[Lldb-commits] [lldb] [RFC][lldb-dap] Always stop on enrty for attaching (PR #134339)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 8 09:59:55 PDT 2025
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
More information about the lldb-commits
mailing list