================ @@ -566,6 +559,53 @@ class ExecutionContext { lldb::StackFrameSP m_frame_sp; ///< The stack frame in thread. }; +/// A wrapper class representing an execution context with non-null Target +/// and Process pointers, a locked API mutex and a locked ProcessRunLock. +/// The locks are private by design: to unlock them, destroy the +/// CompleteExecutionContext. +struct CompleteExecutionContext : ExecutionContext { ---------------- JDevlieghere wrote:
If the goal is to discourage using `GetProcessPtr` and `GetTargetPtr`, I think we could mark them as deprecated for `CompleteExecutionContext` with a message that tells you to use the reference variants instead. https://github.com/llvm/llvm-project/pull/152020 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits