FpDebug: deal with parentfp for nested procs

git-svn-id: trunk@44642 -
This commit is contained in:
martin 2014-04-07 20:33:20 +00:00
parent 3c56c419a5
commit b0e9f959f6

View File

@ -96,6 +96,8 @@ begin
if FOuterNestContext <> nil then begin
ADbgValue := FOuterNestContext.FindSymbol(AName); // TODO: pass upper/lower
if ADbgValue <> nil then
AddRefToVal(ADbgValue);
Result := True; // self, global was done by outer
exit;
end;
@ -154,6 +156,8 @@ begin
FOuterNestContext := Dwarf.FindContext(ThreadId, i, pc);
ADbgValue := FOuterNestContext.FindSymbol(AName); // TODO: pass upper/lower
if ADbgValue <> nil then
AddRefToVal(ADbgValue);
Result := True; // self, global was done by outer
end;