Merged revision(s) 64960 #bfc0e25216 from trunk:

GdbmiDebugger: fix "array of string" for gdb 10.1 / use (foo^+0) instead of foo^  Issue #0038674
........

git-svn-id: branches/fixes_2_0@64964 -
This commit is contained in:
martin 2021-04-11 00:06:20 +00:00
parent 71b130e9da
commit a616a8078f

View File

@ -1247,8 +1247,14 @@ begin
PCastCnt := j;
end
else
if (PCastCnt = 0) then
if (PCastCnt = 0) then begin
Result := Result + '^';
if ((IdxPart.PTypeReq.Result.Kind = ptprkSimple) and (ptprfPointer in IdxPart.PTypeReq.Result.Flags)) or
//=[ptprfPointer, ptprfDynArray, ptprfNoBounds, ptprfDeclarationInBrackets] Kind=ptprkArray Nam
((IdxPart.PTypeReq.Result.Kind = ptprkArray) and (IdxPart.PTypeReq.Result.Flags * [ptprfPointer, ptprfDynArray, ptprfNoBounds] = [ptprfPointer, ptprfDynArray, ptprfNoBounds]))
then
Result := '('+Result + '+0)';
end;
end;
if toSkipArrayIdx in AOpts