[Lldb-commits] [lldb] [lldb] Guard SBFrame/SBThread methods against running processes (PR #152020)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Fri Aug 8 09:27:24 PDT 2025
================
@@ -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:
[bikeshedding]
Should this be called `StoppedExecutionContext`? My reasoning is that it would both emphasize that the process is stopped (and will remain) stopped, which automatically implies that you have a process.
[/bikeshedding]
https://github.com/llvm/llvm-project/pull/152020
More information about the lldb-commits
mailing list