mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 11:59:25 +02:00
FpDebug: display info about types in watches
git-svn-id: trunk@61734 -
This commit is contained in:
parent
4c83d18f8d
commit
335f49891d
@ -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
|
||||
|
@ -1458,7 +1458,7 @@ end;
|
||||
|
||||
function TFpValueDwarfTypeDefinition.GetKind: TDbgSymbolKind;
|
||||
begin
|
||||
Result := skNone;
|
||||
Result := skType;
|
||||
end;
|
||||
|
||||
function TFpValueDwarfTypeDefinition.GetDbgSymbol: TFpSymbol;
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user