FpDebug: display info about types in watches

git-svn-id: trunk@61734 -
This commit is contained in:
martin 2019-08-20 18:58:50 +00:00
parent 4c83d18f8d
commit 335f49891d
3 changed files with 12 additions and 2 deletions

View File

@ -25,7 +25,7 @@ type
TDbgSymbolKind = (
skNone, // undefined type
//skType // Not a value, but a type description
skType, // Not a value, but a type description
//skUser, // userdefined type, this sym refers to another sym defined elswhere
//--------------------------------------------------------------------------
skInstance, // the main exe/dll, containing all other syms

View File

@ -1458,7 +1458,7 @@ end;
function TFpValueDwarfTypeDefinition.GetKind: TDbgSymbolKind;
begin
Result := skNone;
Result := skType;
end;
function TFpValueDwarfTypeDefinition.GetDbgSymbol: TFpSymbol;

View File

@ -665,6 +665,15 @@ function TFpPascalPrettyPrinter.InternalPrintValue(out APrintedValue: String;
Result := True;
end;
procedure DoType;
begin
if GetTypeAsDeclaration(APrintedValue, AValue.DbgSymbol) then
APrintedValue := 'type ' + APrintedValue
else
DoUnknown;
Result := True;
end;
procedure DoFunction;
var
s: String;
@ -1133,6 +1142,7 @@ begin
skClass: DoStructure;
skInterface: ;
skArray: DoArray;
skType: DoType;
skNone: DoUnknown;
end;