Lines Matching refs:exe_ctx

97   ExecutionContext exe_ctx(m_opaque_sp.get(), lock);  in GetQueue()  local
99 if (exe_ctx.HasThreadScope()) { in GetQueue()
101 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) { in GetQueue()
102 queue_sp = exe_ctx.GetThreadPtr()->GetQueue(); in GetQueue()
120 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in operator bool() local
122 Target *target = exe_ctx.GetTargetPtr(); in operator bool()
123 Process *process = exe_ctx.GetProcessPtr(); in operator bool()
144 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in GetStopReason() local
146 if (exe_ctx.HasThreadScope()) { in GetStopReason()
148 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) { in GetStopReason()
149 return exe_ctx.GetThreadPtr()->GetStopReason(); in GetStopReason()
160 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in GetStopReasonDataCount() local
162 if (exe_ctx.HasThreadScope()) { in GetStopReasonDataCount()
164 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) { in GetStopReasonDataCount()
165 StopInfoSP stop_info_sp = exe_ctx.GetThreadPtr()->GetStopInfo(); in GetStopReasonDataCount()
182 exe_ctx.GetProcessPtr()->GetBreakpointSiteList().FindByID( in GetStopReasonDataCount()
210 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in GetStopReasonDataAtIndex() local
212 if (exe_ctx.HasThreadScope()) { in GetStopReasonDataAtIndex()
214 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) { in GetStopReasonDataAtIndex()
215 Thread *thread = exe_ctx.GetThreadPtr(); in GetStopReasonDataAtIndex()
233 exe_ctx.GetProcessPtr()->GetBreakpointSiteList().FindByID( in GetStopReasonDataAtIndex()
274 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in GetStopReasonExtendedInfoAsJSON() local
276 if (!exe_ctx.HasThreadScope()) in GetStopReasonExtendedInfoAsJSON()
279 StopInfoSP stop_info = exe_ctx.GetThreadPtr()->GetStopInfo(); in GetStopReasonExtendedInfoAsJSON()
299 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in GetStopReasonExtendedBacktraces() local
301 if (!exe_ctx.HasThreadScope()) in GetStopReasonExtendedBacktraces()
304 ProcessSP process_sp = exe_ctx.GetProcessSP(); in GetStopReasonExtendedBacktraces()
306 StopInfoSP stop_info = exe_ctx.GetThreadPtr()->GetStopInfo(); in GetStopReasonExtendedBacktraces()
320 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in GetStopDescription() local
322 if (exe_ctx.HasThreadScope()) { in GetStopDescription()
324 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) { in GetStopDescription()
326 StopInfoSP stop_info_sp = exe_ctx.GetThreadPtr()->GetStopInfo(); in GetStopDescription()
362 exe_ctx.GetProcessPtr()->GetUnixSignals()->GetSignalAsCString( in GetStopDescription()
417 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in GetStopReturnValue() local
419 if (exe_ctx.HasThreadScope()) { in GetStopReturnValue()
421 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) { in GetStopReturnValue()
422 StopInfoSP stop_info_sp = exe_ctx.GetThreadPtr()->GetStopInfo(); in GetStopReturnValue()
459 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in GetName() local
461 if (exe_ctx.HasThreadScope()) { in GetName()
463 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) { in GetName()
464 name = exe_ctx.GetThreadPtr()->GetName(); in GetName()
476 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in GetQueueName() local
478 if (exe_ctx.HasThreadScope()) { in GetQueueName()
480 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) { in GetQueueName()
481 name = exe_ctx.GetThreadPtr()->GetQueueName(); in GetQueueName()
493 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in GetQueueID() local
495 if (exe_ctx.HasThreadScope()) { in GetQueueID()
497 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) { in GetQueueID()
498 id = exe_ctx.GetThreadPtr()->GetQueueID(); in GetQueueID()
511 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in GetInfoItemByPathAsString() local
513 if (exe_ctx.HasThreadScope()) { in GetInfoItemByPathAsString()
515 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) { in GetInfoItemByPathAsString()
516 Thread *thread = exe_ctx.GetThreadPtr(); in GetInfoItemByPathAsString()
553 SBError SBThread::ResumeNewPlan(ExecutionContext &exe_ctx, in ResumeNewPlan() argument
557 Process *process = exe_ctx.GetProcessPtr(); in ResumeNewPlan()
563 Thread *thread = exe_ctx.GetThreadPtr(); in ResumeNewPlan()
600 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in StepOver() local
602 if (!exe_ctx.HasThreadScope()) { in StepOver()
607 Thread *thread = exe_ctx.GetThreadPtr(); in StepOver()
625 error = ResumeNewPlan(exe_ctx, new_plan_sp.get()); in StepOver()
652 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in StepInto() local
654 if (!exe_ctx.HasThreadScope()) { in StepInto()
661 Thread *thread = exe_ctx.GetThreadPtr(); in StepInto()
690 error = ResumeNewPlan(exe_ctx, new_plan_sp.get()); in StepInto()
706 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in StepOut() local
708 if (!exe_ctx.HasThreadScope()) { in StepOut()
716 Thread *thread = exe_ctx.GetThreadPtr(); in StepOut()
725 error = ResumeNewPlan(exe_ctx, new_plan_sp.get()); in StepOut()
744 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in StepOutOfFrame() local
753 if (!exe_ctx.HasThreadScope()) { in StepOutOfFrame()
760 Thread *thread = exe_ctx.GetThreadPtr(); in StepOutOfFrame()
772 error = ResumeNewPlan(exe_ctx, new_plan_sp.get()); in StepOutOfFrame()
789 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in StepInstruction() local
791 if (!exe_ctx.HasThreadScope()) { in StepInstruction()
796 Thread *thread = exe_ctx.GetThreadPtr(); in StepInstruction()
802 error = ResumeNewPlan(exe_ctx, new_plan_sp.get()); in StepInstruction()
819 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in RunToAddress() local
821 if (!exe_ctx.HasThreadScope()) { in RunToAddress()
831 Thread *thread = exe_ctx.GetThreadPtr(); in RunToAddress()
838 error = ResumeNewPlan(exe_ctx, new_plan_sp.get()); in RunToAddress()
853 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in StepOverUntil() local
857 if (exe_ctx.HasThreadScope()) { in StepOverUntil()
858 Target *target = exe_ctx.GetTargetPtr(); in StepOverUntil()
859 Thread *thread = exe_ctx.GetThreadPtr(); in StepOverUntil()
952 sb_error = ResumeNewPlan(exe_ctx, new_plan_sp.get()); in StepOverUntil()
994 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in StepUsingScriptedThreadPlan() local
996 if (!exe_ctx.HasThreadScope()) { in StepUsingScriptedThreadPlan()
1001 Thread *thread = exe_ctx.GetThreadPtr(); in StepUsingScriptedThreadPlan()
1017 error = ResumeNewPlan(exe_ctx, new_plan_sp.get()); in StepUsingScriptedThreadPlan()
1031 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in JumpToLine() local
1033 if (!exe_ctx.HasThreadScope()) { in JumpToLine()
1038 Thread *thread = exe_ctx.GetThreadPtr(); in JumpToLine()
1052 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in ReturnFromFrame() local
1054 if (exe_ctx.HasThreadScope()) { in ReturnFromFrame()
1055 Thread *thread = exe_ctx.GetThreadPtr(); in ReturnFromFrame()
1070 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in UnwindInnermostExpression() local
1072 if (exe_ctx.HasThreadScope()) { in UnwindInnermostExpression()
1073 Thread *thread = exe_ctx.GetThreadPtr(); in UnwindInnermostExpression()
1093 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in Suspend() local
1096 if (exe_ctx.HasThreadScope()) { in Suspend()
1098 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) { in Suspend()
1099 exe_ctx.GetThreadPtr()->SetResumeState(eStateSuspended); in Suspend()
1120 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in Resume() local
1123 if (exe_ctx.HasThreadScope()) { in Resume()
1125 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) { in Resume()
1127 exe_ctx.GetThreadPtr()->SetResumeState(eStateRunning, override_suspend); in Resume()
1141 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in IsSuspended() local
1143 if (exe_ctx.HasThreadScope()) in IsSuspended()
1144 return exe_ctx.GetThreadPtr()->GetResumeState() == eStateSuspended; in IsSuspended()
1152 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in IsStopped() local
1154 if (exe_ctx.HasThreadScope()) in IsStopped()
1155 return StateIsStoppedState(exe_ctx.GetThreadPtr()->GetState(), true); in IsStopped()
1164 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in GetProcess() local
1166 if (exe_ctx.HasThreadScope()) { in GetProcess()
1169 sb_process.SetSP(exe_ctx.GetProcessSP()); in GetProcess()
1180 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in GetNumFrames() local
1182 if (exe_ctx.HasThreadScope()) { in GetNumFrames()
1184 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) { in GetNumFrames()
1185 num_frames = exe_ctx.GetThreadPtr()->GetStackFrameCount(); in GetNumFrames()
1198 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in GetFrameAtIndex() local
1200 if (exe_ctx.HasThreadScope()) { in GetFrameAtIndex()
1202 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) { in GetFrameAtIndex()
1203 frame_sp = exe_ctx.GetThreadPtr()->GetStackFrameAtIndex(idx); in GetFrameAtIndex()
1217 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in GetSelectedFrame() local
1219 if (exe_ctx.HasThreadScope()) { in GetSelectedFrame()
1221 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) { in GetSelectedFrame()
1222 frame_sp = exe_ctx.GetThreadPtr()->GetSelectedFrame(); in GetSelectedFrame()
1237 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in SetSelectedFrame() local
1239 if (exe_ctx.HasThreadScope()) { in SetSelectedFrame()
1241 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) { in SetSelectedFrame()
1242 Thread *thread = exe_ctx.GetThreadPtr(); in SetSelectedFrame()
1300 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in GetStatus() local
1302 if (exe_ctx.HasThreadScope()) { in GetStatus()
1303 exe_ctx.GetThreadPtr()->GetStatus(strm, 0, 1, 1, true); in GetStatus()
1324 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in GetDescription() local
1326 if (exe_ctx.HasThreadScope()) { in GetDescription()
1327 exe_ctx.GetThreadPtr()->DumpUsingSettingsFormat(strm, in GetDescription()
1343 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in GetExtendedBacktraceThread() local
1347 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) { in GetExtendedBacktraceThread()
1348 if (exe_ctx.HasThreadScope()) { in GetExtendedBacktraceThread()
1349 ThreadSP real_thread(exe_ctx.GetThreadSP()); in GetExtendedBacktraceThread()
1352 Process *process = exe_ctx.GetProcessPtr(); in GetExtendedBacktraceThread()