Lines Matching defs:event_sp
1149 // EventSP event_sp;
1150 // while (m_private_state_listener.GetNextEvent(event_sp))
1152 // event_sp->Dump (&s);
1212 Process::GetNextEvent (EventSP &event_sp)
1216 if (m_listener.GetNextEventForBroadcaster (this, event_sp) && event_sp)
1217 state = Process::ProcessEventData::GetStateFromEvent (event_sp.get());
1239 EventSP event_sp;
1240 state = WaitForStateChangedEvents (timeout, event_sp);
1241 if (event_sp_ptr && event_sp)
1242 *event_sp_ptr = event_sp;
1252 if (Process::ProcessEventData::GetRestartedFromEvent(event_sp.get()))
1271 EventSP event_sp;
1281 state = WaitForStateChangedEvents (timeout, event_sp);
1327 Process::WaitForStateChangedEvents (const TimeValue *timeout, EventSP &event_sp)
1332 log->Printf ("Process::%s (timeout = %p, event_sp)...", __FUNCTION__, timeout);
1338 event_sp))
1340 if (event_sp && event_sp->GetType() == eBroadcastBitStateChanged)
1341 state = Process::ProcessEventData::GetStateFromEvent(event_sp.get());
1347 log->Printf ("Process::%s (timeout = %p, event_sp) => %s",
1383 Process::WaitForStateChangedEventsPrivate (const TimeValue *timeout, EventSP &event_sp)
1388 log->Printf ("Process::%s (timeout = %p, event_sp)...", __FUNCTION__, timeout);
1394 event_sp))
1395 if (event_sp && event_sp->GetType() == eBroadcastBitStateChanged)
1396 state = Process::ProcessEventData::GetStateFromEvent(event_sp.get());
1404 log->Printf ("Process::%s (timeout = %p, event_sp) => TIMEOUT", __FUNCTION__, timeout);
1406 log->Printf ("Process::%s (timeout = %p, event_sp) => %s", __FUNCTION__, timeout, StateAsCString(state));
1412 Process::WaitForEventsPrivate (const TimeValue *timeout, EventSP &event_sp, bool control_only)
1417 log->Printf ("Process::%s (timeout = %p, event_sp)...", __FUNCTION__, timeout);
1420 return m_private_state_listener.WaitForEventForBroadcaster(timeout, &m_private_state_control_broadcaster, event_sp);
1422 return m_private_state_listener.WaitForEvent(timeout, event_sp);
2819 Process::WaitForProcessStopPrivate (const TimeValue *timeout, EventSP &event_sp)
2826 event_sp.reset();
2827 state = WaitForStateChangedEventsPrivate (timeout, event_sp);
2836 if (event_sp)
2837 HandlePrivateEvent (event_sp);
2894 EventSP event_sp;
2898 StateType state = WaitForProcessStopPrivate(&timeout_time, event_sp);
2900 if (state == eStateInvalid || event_sp.get() == NULL)
2919 HandlePrivateEvent (event_sp);
2930 HandlePrivateEvent (event_sp);
2979 Process::AttachCompletionHandler::PerformAction (lldb::EventSP &event_sp)
2981 StateType state = ProcessEventData::GetStateFromEvent (event_sp.get());
3246 EventSP event_sp;
3247 StateType state = WaitForProcessStopPrivate(NULL, event_sp);
3257 HandlePrivateEvent (event_sp);
3347 EventSP event_sp;
3378 bool got_event = halt_listener.WaitForEvent (&timeout_time, event_sp);
3379 StateType state = ProcessEventData::GetStateFromEvent(event_sp.get());
3393 ProcessEventData::SetInterruptedInEvent (event_sp.get(), true);
3415 if (event_sp)
3416 m_private_state_broadcaster.BroadcastEvent(event_sp);
3893 Process::HandlePrivateEvent (EventSP &event_sp)
3900 const StateType new_state = Process::ProcessEventData::GetStateFromEvent(event_sp.get());
3905 NextEventAction::EventActionResult action_result = m_next_event_action_ap->PerformAction(event_sp);
3936 const bool should_broadcast = ShouldBroadcastEvent (event_sp.get());
3949 Process::ProcessEventData::SetUpdateStateOnRemoval(event_sp.get());
3952 else if (!Process::ProcessEventData::GetRestartedFromEvent(event_sp.get()))
3955 BroadcastEvent (event_sp);
3992 EventSP event_sp;
3993 WaitForEventsPrivate (NULL, event_sp, control_only);
3994 if (event_sp->BroadcasterIs(&m_private_state_control_broadcaster))
3997 log->Printf ("Process::%s (arg = %p, pid = %" PRIu64 ") got a control event: %d", __FUNCTION__, this, GetID(), event_sp->GetType());
3999 switch (event_sp->GetType())
4017 else if (event_sp->GetType() == eBroadcastBitInterrupt)
4034 const StateType internal_state = Process::ProcessEventData::GetStateFromEvent(event_sp.get());
4044 HandlePrivateEvent (event_sp);
4784 lldb::EventSP event_sp;
4857 got_event = listener.WaitForEvent(&resume_timeout, event_sp);
4869 stop_state = Process::ProcessEventData::GetStateFromEvent(event_sp.get());
4877 restarted = Process::ProcessEventData::GetRestartedFromEvent(event_sp.get());
4939 event_sp.reset();
4955 got_event = listener.WaitForEvent (timeout_ptr, event_sp);
4959 if (event_sp.get())
4962 if (event_sp->GetType() == eBroadcastBitInterrupt)
4973 stop_state = Process::ProcessEventData::GetStateFromEvent(event_sp.get());
4993 if (Process::ProcessEventData::GetRestartedFromEvent(event_sp.get()))
5035 event_to_broadcast_sp = event_sp;
5043 event_to_broadcast_sp = event_sp;
5065 event_to_broadcast_sp = event_sp;
5138 got_event = listener.WaitForEvent(&real_timeout, event_sp);
5142 stop_state = Process::ProcessEventData::GetStateFromEvent(event_sp.get());
5147 && Process::ProcessEventData::GetInterruptedFromEvent(event_sp.get()))
5166 if (Process::ProcessEventData::GetRestartedFromEvent(event_sp.get()))
5264 if (event_sp)
5265 event_sp->Dump (&s);
5277 if (!event_sp)
5282 else if (event_sp->GetType() == eBroadcastBitInterrupt)
5289 const Process::ProcessEventData *event_data = Process::ProcessEventData::GetEventDataFromEvent (event_sp.get());