@@ -138,33 +138,33 @@ lldb_private::GetStoppedExecutionContext(
138
138
const ExecutionContextRef *exe_ctx_ref_ptr) {
139
139
if (!exe_ctx_ref_ptr)
140
140
return llvm::createStringError (
141
- " ExecutionContext created with an empty ExecutionContextRef" );
141
+ " StoppedExecutionContext created with an empty ExecutionContextRef" );
142
142
143
143
lldb::TargetSP target_sp = exe_ctx_ref_ptr->GetTargetSP ();
144
144
if (!target_sp)
145
145
return llvm::createStringError (
146
- " ExecutionContext created with a null target" );
146
+ " StoppedExecutionContext created with a null target" );
147
147
148
148
auto api_lock =
149
149
std::unique_lock<std::recursive_mutex>(target_sp->GetAPIMutex ());
150
150
151
151
auto process_sp = exe_ctx_ref_ptr->GetProcessSP ();
152
152
if (!process_sp)
153
153
return llvm::createStringError (
154
- " ExecutionContext created with a null process" );
154
+ " StoppedExecutionContext created with a null process" );
155
155
156
156
ProcessRunLock::ProcessRunLocker stop_locker;
157
157
if (!stop_locker.TryLock (&process_sp->GetRunLock ()))
158
158
return llvm::createStringError (
159
- " attempted to create an ExecutionContext with a running process" );
159
+ " attempted to create a StoppedExecutionContext with a running process" );
160
160
161
161
auto thread_sp = exe_ctx_ref_ptr->GetThreadSP ();
162
162
auto frame_sp = exe_ctx_ref_ptr->GetFrameSP ();
163
163
return StoppedExecutionContext (target_sp, process_sp, thread_sp, frame_sp,
164
164
std::move (api_lock), std::move (stop_locker));
165
165
}
166
166
167
- std::unique_lock<std::recursive_mutex> StoppedExecutionContext::Destroy () {
167
+ std::unique_lock<std::recursive_mutex> StoppedExecutionContext::AllowResume () {
168
168
Clear ();
169
169
m_stop_locker = ProcessRunLock::ProcessRunLocker ();
170
170
return std::move (m_api_lock);
0 commit comments