This commit is contained in:
Basile Burg 2019-01-20 07:45:22 +01:00
parent 7c35bceb12
commit 92cf60b04b
1 changed files with 12 additions and 12 deletions

View File

@ -2882,7 +2882,7 @@ const
var
cmd : string;
begin
cmd := format(spec, [GetEnumName(typeinfo(TCpuRegister),integer(reg)), val]);
cmd := format(spec, [GetEnumName(typeinfo(TCpuRegister), integer(reg)), val]);
gdbCommand(cmd);
end;
@ -2892,7 +2892,17 @@ const
var
cmd : string;
begin
cmd := format(spec, [GetEnumName(typeinfo(TSegRegister),integer(reg)), val]);
cmd := format(spec, [GetEnumName(typeinfo(TSegRegister), integer(reg)), val]);
gdbCommand(cmd);
end;
procedure TGdbWidget.setFpr(reg: TFpuRegister; val: extended);
const
spec = 'set $%s = %.18g';
var
cmd : string;
begin
cmd := format(spec, [GetEnumName(typeinfo(TFpuRegister), integer(reg)), val]);
gdbCommand(cmd);
end;
@ -2905,16 +2915,6 @@ begin
cmd := format(spec, [val]);
gdbCommand(cmd);
end;
procedure TGdbWidget.setFpr(reg: TFpuRegister; val: extended);
const
spec = 'set $%s = %.18g';
var
cmd : string;
begin
cmd := format(spec, [GetEnumName(typeinfo(TFpuRegister),integer(reg)), val]);
gdbCommand(cmd);
end;
{$ENDREGION}
initialization