DBG: Improve (pascalize) pointer, if DynArray shows as pointer

git-svn-id: trunk@32163 -
This commit is contained in:
martin 2011-09-02 23:35:27 +00:00
parent f170d53156
commit 1c2e8b3a95
3 changed files with 8 additions and 1 deletions

View File

@ -686,7 +686,8 @@ type
type
TDBGSymbolKind = (skClass, skRecord, skEnum, skSet, skProcedure, skFunction, skSimple, skPointer, skVariant);
TDBGSymbolAttribute = (saRefParam, // var, const, constref passed by reference
saInternalPointer // PointerToObject
saInternalPointer, // PointerToObject
saArray, saDynArray
);
TDBGSymbolAttributes = set of TDBGSymbolAttribute;
TDBGFieldLocation = (flPrivate, flProtected, flPublic, flPublished);

View File

@ -10782,6 +10782,9 @@ function TGDBMIDebuggerCommandEvaluate.DoExecute: Boolean;
else
if (ResultInfo.TypeName = '&ShortString') then
FTextValue := GetStrValue('ShortString(%s)', [AnExpression]) // we have an address here, so we need to typecast
else
if saDynArray in ResultInfo.Attributes then
FTextValue := PascalizePointer(FTextValue)
else
FTextValue := FTextValue;
end;

View File

@ -1248,6 +1248,9 @@ var
end;
FKind := skSimple;
if (ptprfDynArray in PTypeResult.Flags)
then include(FAttributes, saDynArray)
else include(FAttributes, saArray);
if not(gtcfSkipTypeName in FCreationFlags) then begin
if not RequireRequests([gptrWhatisExpr])