Always call RefreshStateAfterStop when we get a stop event. We were skipping doing it in the case where we had interrupted the target. Presumably at some point in the past RefreshStateAfterStop was done more directly when we handled the interrupt, but it isn't any more so now we need to do it all the time.

llvm-svn: 156894
This commit is contained in:
Jim Ingham 2012-05-16 01:32:14 +00:00
parent b08a9442fd
commit cb4ca11bef
1 changed files with 2 additions and 1 deletions

View File

@ -3099,6 +3099,8 @@ Process::ShouldBroadcastEvent (Event *event_ptr)
// If we are going to stop, then we always broadcast the event.
// If we aren't going to stop, let the thread plans decide if we're going to report this event.
// If no thread has an opinion, we don't report it.
RefreshStateAfterStop ();
if (ProcessEventData::GetInterruptedFromEvent (event_ptr))
{
if (log)
@ -3107,7 +3109,6 @@ Process::ShouldBroadcastEvent (Event *event_ptr)
}
else
{
RefreshStateAfterStop ();
if (m_thread_list.ShouldStop (event_ptr) == false)
{