From e3c21ef72996a41e4160fef9996163fd65aed179 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Srbeck=C3=BD?= Date: Wed, 5 Jul 2006 15:14:23 +0000 Subject: [PATCH] Bugfix: Check function expiration in all callbacks with thread git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1544 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../Project/Src/Debugger/Internal/ManagedCallback.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Debugger/Internal/ManagedCallback.cs b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Debugger/Internal/ManagedCallback.cs index a5b28e95de..0a3dccc910 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Debugger/Internal/ManagedCallback.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Debugger/Internal/ManagedCallback.cs @@ -71,6 +71,8 @@ namespace Debugger { EnterCallback(pausedReason, name, pThread.Process); debugger.SelectedProcess.SelectedThread = debugger.GetThread(pThread); + // Remove expired functions from the callstack cache + debugger.SelectedProcess.SelectedThread.CheckExpirationOfFunctions(); } void ExitCallback_Continue() @@ -115,9 +117,6 @@ namespace Debugger thread.Steppers.Remove(stepper); stepper.OnStepComplete(); - // There is a race condition: The tracking step out can be triggered after stepping step over - thread.CheckExpirationOfFunctions(); - if (stepper.PauseWhenComplete) { if (debugger.SelectedThread.LastFunction.HasSymbols) { ExitCallback_Paused();