FpDebug: Change/Fix shortstring detection after array stride fix in fpc. (change by Issue #0036144 )

git-svn-id: trunk@62048 -
This commit is contained in:
martin 2019-10-13 12:25:42 +00:00
parent b11f360499
commit 23a034b033

View File

@ -531,6 +531,9 @@ begin
if (inherited NestedSymbolCount <> 2) then
exit;
if (Name <> 'ShortString') and (Name <> 'LongString') then // DWARF-2 => user types are all caps
exit;
LenSym := inherited NestedSymbolByName['length'];
if (LenSym = nil) or (LenSym.Kind <> skCardinal) // or (LenSym.Size <> 1) // not implemented yet
then
@ -543,11 +546,6 @@ begin
if (StSymType = nil) or (StSymType.Kind <> skArray) or not (StSymType is TFpSymbolDwarfTypeArray) then
exit;
// If it were a user declared array, fpc puts the stride in the subrange
if not TFpSymbolDwarfTypeArray(StSymType).InformationEntry.HasAttrib(DW_AT_byte_stride) then
exit;
// check the subrange?
FIsShortString := issShortString;
Result := True;
end;