瀏覽代碼

Avoid infinite recursion if symbols and gdb window are displayed while running debuggee

git-svn-id: trunk@27284 -
pierre 11 年之前
父節點
當前提交
cdac1d23cd
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      ide/fpsymbol.pas

+ 2 - 1
ide/fpsymbol.pas

@@ -551,11 +551,12 @@ begin
     DisposeStr(St);
     DisposeStr(St);
   if assigned(Expr) then
   if assigned(Expr) then
     begin
     begin
+      { avoid infinite recursion here }
+      GDBI:=Debugger^.RunCount;
       p:=Debugger^.GetValue(Expr^);
       p:=Debugger^.GetValue(Expr^);
       St:=NewStr(GetPChar(p));
       St:=NewStr(GetPChar(p));
       if assigned(p) then
       if assigned(p) then
         StrDispose(p);
         StrDispose(p);
-      GDBI:=Debugger^.RunCount;
     end;
     end;
 {$endif ndef NODEBUG}
 {$endif ndef NODEBUG}
 {$endif BROWSERCOL}
 {$endif BROWSERCOL}