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:
parent
e1fb666f81
commit
f1ea2af3e7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user