From f1ea2af3e73d3bf9c49d0904c5fd9143170a64fd Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Sat, 24 Nov 2012 12:46:21 -0500 Subject: [PATCH] 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. --- src/apps/debugger/model/Thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/debugger/model/Thread.cpp b/src/apps/debugger/model/Thread.cpp index e6fcb70951..c6692f89e5 100644 --- a/src/apps/debugger/model/Thread.cpp +++ b/src/apps/debugger/model/Thread.cpp @@ -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;