2
0
Эх сурвалжийг харах

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

git-svn-id: trunk@27284 -
pierre 11 жил өмнө
parent
commit
cdac1d23cd
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      ide/fpsymbol.pas

+ 2 - 1
ide/fpsymbol.pas

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