LazDebuggerFp, FpDebug: Add option to support "modeswitch AutoDeref" access of values.

This commit is contained in:
Martin 2023-06-08 15:26:01 +02:00
parent 62e692fc24
commit ceaec5975a

View File

@ -1521,7 +1521,7 @@ begin
if Expression.AutoDeref and (TmpVal.Kind = skPointer) and
(TmpVal.TypeInfo <> nil) and (TmpVal.TypeInfo.TypeInfo <> nil) and
(TmpVal.TypeInfo.TypeInfo.Kind in [skProcedure..skArray])
(TmpVal.TypeInfo.TypeInfo.Kind in [skString, skAnsiString, skWideString, skArray])
then begin
// Copy from TFpPascalExpressionPartOperatorDeRef.DoGetResultValue
if (svfDataAddress in TmpVal.FieldFlags) and (IsReadableLoc(TmpVal.DerefAddress)) and // TODO, what if Not readable addr