mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 13:00:47 +02:00
FpDebug: overloaded Register.SetValue to avoid range-check errors.
This commit is contained in:
parent
ec97ee173f
commit
51eca6e940
@ -109,6 +109,9 @@ type
|
||||
destructor Destroy; override;
|
||||
procedure Assign(ASource: TDbgRegisterValue);
|
||||
function HasEqualVal(AnOther: TDbgRegisterValue): Boolean;
|
||||
procedure SetValue(ANumValue: Integer; const AStrValue: string; ASize: byte; ADwarfIdx: cardinal);
|
||||
procedure SetValue(ANumValue: Int64; const AStrValue: string; ASize: byte; ADwarfIdx: cardinal);
|
||||
procedure SetValue(ANumValue: Cardinal; const AStrValue: string; ASize: byte; ADwarfIdx: cardinal);
|
||||
procedure SetValue(ANumValue: TDBGPtr; const AStrValue: string; ASize: byte; ADwarfIdx: cardinal);
|
||||
procedure SetValue(const AData: Pointer; ASize: byte; ADwarfIdx: cardinal; AFormatter: TRegisterFormatterProc);
|
||||
procedure Setx86EFlagsValue(ANumValue: TDBGPtr);
|
||||
@ -1090,6 +1093,26 @@ begin
|
||||
(FStrValue = AnOther.FStrValue);
|
||||
end;
|
||||
|
||||
procedure TDbgRegisterValue.SetValue(ANumValue: Integer; const AStrValue: string; ASize: byte;
|
||||
ADwarfIdx: cardinal);
|
||||
var
|
||||
CNum: Cardinal absolute ANumValue;
|
||||
begin
|
||||
SetValue(TDBGPtr(CNum), AStrValue, ASize, ADwarfIdx);
|
||||
end;
|
||||
|
||||
procedure TDbgRegisterValue.SetValue(ANumValue: Int64; const AStrValue: string; ASize: byte;
|
||||
ADwarfIdx: cardinal);
|
||||
begin
|
||||
SetValue(TDBGPtr(ANumValue), AStrValue, ASize, ADwarfIdx);
|
||||
end;
|
||||
|
||||
procedure TDbgRegisterValue.SetValue(ANumValue: Cardinal; const AStrValue: string; ASize: byte;
|
||||
ADwarfIdx: cardinal);
|
||||
begin
|
||||
SetValue(TDBGPtr(ANumValue), AStrValue, ASize, ADwarfIdx);
|
||||
end;
|
||||
|
||||
procedure TDbgRegisterValue.SetValue(ANumValue: TDBGPtr;
|
||||
const AStrValue: string; ASize: byte; ADwarfIdx: cardinal);
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user