mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-09 15:16:04 +02:00
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:
parent
b11f360499
commit
23a034b033
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user