FpDebug: Fixed compilation after recent changes and with fpc 2.6.2

git-svn-id: trunk@44632 -
This commit is contained in:
joost 2014-04-07 16:34:55 +00:00
parent 464b450a90
commit 813e158c7d
2 changed files with 6 additions and 10 deletions

View File

@ -85,7 +85,7 @@ type
constructor Create(ADbgProcess: TDbgProcess);
function ReadMemory(AnAddress: TDbgPtr; ASize: Cardinal; ADest: Pointer): Boolean; override;
function ReadMemoryEx(AnAddress, AnAddressSpace: TDbgPtr; ASize: Cardinal; ADest: Pointer): Boolean; override;
function ReadRegister(ARegNum: Cardinal; out AValue: TDbgPtr): Boolean; override;
function ReadRegister(ARegNum: Cardinal; out AValue: TDbgPtr; AContext: TFpDbgAddressContext): Boolean; override;
function RegisterSize(ARegNum: Cardinal): Integer; override;
end;
@ -312,15 +312,11 @@ begin
FDbgProcess.ReadData(AnAddress, ASize, ADest^);
end;
function TDbgMemReader.ReadRegister(ARegNum: Cardinal; out AValue: TDbgPtr): Boolean;
function TDbgMemReader.ReadRegister(ARegNum: Cardinal; out AValue: TDbgPtr; AContext: TFpDbgAddressContext): Boolean;
begin
result := true;
case ARegNum of
// ToDo: Link the Dwarf-register-numbers to the actual registers.
// 0: AValue:=FDbgProcess.MainThread.RegisterValueList.GetDbgRegister('eax').NumValue;
else
result := false;
end
// ToDo: Link the Dwarf-register-numbers to the actual registers.
// AValue:=FDbgProcess.MainThread.RegisterValueList.GetDbgRegister('eax').NumValue;
end;
function TDbgMemReader.RegisterSize(ARegNum: Cardinal): Integer;

View File

@ -125,7 +125,7 @@ end;
procedure TFPWatches.InternalRequestData(AWatchValue: TWatchValue);
var
AContext: TDbgInfoAddressContext;
AContext: TFpDbgInfoContext;
AController: TDbgController;
APasExpr: TFpPascalExpression;