FPDebug: correct class for member

git-svn-id: trunk@44180 -
This commit is contained in:
martin 2014-02-20 01:31:45 +00:00
parent 0660f0e9f4
commit 281d40f25c

View File

@ -2895,14 +2895,8 @@ end;
function TDbgDwarfSymbolValue.GetContextTypeInfo: TDbgSymbol;
begin
if (FValueSymbol = nil) or (FValueSymbol.StructureValueInfo = nil) then
Result := nil
else
if FValueSymbol.StructureValueInfo is TDbgDwarfValueIdentifier then
Result := TDbgDwarfValueIdentifier(FValueSymbol.StructureValueInfo).TypeInfo
else
if FValueSymbol.StructureValueInfo is TDbgDwarfStructTypeCastSymbolValue then
Result := TDbgDwarfStructTypeCastSymbolValue(FValueSymbol.StructureValueInfo).TypeInfo
if (FValueSymbol <> nil) and (FValueSymbol.ParentTypeInfo <> nil) then
Result := FValueSymbol.ParentTypeInfo
else
Result := nil; // internal error
end;