From dce6409cc17de3dbc1807818dad500ecf0e01e3d Mon Sep 17 00:00:00 2001 From: martin Date: Sun, 27 May 2012 22:59:11 +0000 Subject: [PATCH] DBG: do not set temporary stack = -1 in thread changing. This may cause errors git-svn-id: trunk@37440 - --- debugger/gdbmidebugger.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debugger/gdbmidebugger.pp b/debugger/gdbmidebugger.pp index 71405a7a46..989995d681 100644 --- a/debugger/gdbmidebugger.pp +++ b/debugger/gdbmidebugger.pp @@ -8885,8 +8885,8 @@ begin exit; end; - TGDBMIDebugger(Debugger).FCurrentStackFrame := -1; - TGDBMIDebugger(Debugger).FInternalStackFrame := -1; + TGDBMIDebugger(Debugger).FCurrentStackFrame := 0; + TGDBMIDebugger(Debugger).FInternalStackFrame := 0; tid := Debugger.Threads.Monitor.CurrentThreads.CurrentThreadId; cs := TCurrentCallStack(CurrentCallStackList.EntriesForThreads[tid]); idx := cs.CurrentIndex; // CURRENT