Check that both state and reason are the same.

- If a thread was already in a stopped state, but we received
  an update that indicated something more specific, it would be
  ignored, i.e. changing
  from simply being in a debugged state to specifying a debugger
  call + message. We now check both state and reason before ignoring
  the update. Fixes debug reports not receiving the debugger call
  message properly when intercepting an actual crash as opposed to
  an app running inside the debugger.
This commit is contained in:
Rene Gollent 2012-11-24 12:46:21 -05:00
parent e1fb666f81
commit f1ea2af3e7

View File

@ -57,7 +57,7 @@ Thread::SetName(const BString& name)
void
Thread::SetState(uint32 state, uint32 reason, const BString& info)
{
if (state == fState)
if (state == fState && reason == fStoppedReason)
return;
fState = state;