[Lldb-commits] [lldb] [lldb] Guard stale SBProcess target access (PR #192842)

via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 23 00:16:31 PDT 2026


sfu2 wrote:

Sure. The fix was updated so the stale retained-ProcessSP case after DeleteTarget is handled centrally in SBProcess::GetSP(). 

In a325bebe1, the regression was tightened to expect stale finalized processes to behave as invalid SBProcesss;  
In bed4e5985, the fix was implemented by making SBProcess::GetSP() return empty if the locked Process has already been finalized, so those stale processes no longer surface as usable SBProcess objects.

https://github.com/llvm/llvm-project/pull/192842


More information about the lldb-commits mailing list