mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 21:16:05 +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
|
if (inherited NestedSymbolCount <> 2) then
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
|
if (Name <> 'ShortString') and (Name <> 'LongString') then // DWARF-2 => user types are all caps
|
||||||
|
exit;
|
||||||
|
|
||||||
LenSym := inherited NestedSymbolByName['length'];
|
LenSym := inherited NestedSymbolByName['length'];
|
||||||
if (LenSym = nil) or (LenSym.Kind <> skCardinal) // or (LenSym.Size <> 1) // not implemented yet
|
if (LenSym = nil) or (LenSym.Kind <> skCardinal) // or (LenSym.Size <> 1) // not implemented yet
|
||||||
then
|
then
|
||||||
@ -543,11 +546,6 @@ begin
|
|||||||
if (StSymType = nil) or (StSymType.Kind <> skArray) or not (StSymType is TFpSymbolDwarfTypeArray) then
|
if (StSymType = nil) or (StSymType.Kind <> skArray) or not (StSymType is TFpSymbolDwarfTypeArray) then
|
||||||
exit;
|
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;
|
FIsShortString := issShortString;
|
||||||
Result := True;
|
Result := True;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user