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

git-svn-id: trunk@27284 -
This commit is contained in:
pierre 2014-03-25 17:07:07 +00:00
parent 5c1f404631
commit cdac1d23cd

View File

@ -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}