|
@@ -668,12 +668,12 @@ begin
|
|
WindowWidth:=-1;
|
|
WindowWidth:=-1;
|
|
switch_to_user:=true;
|
|
switch_to_user:=true;
|
|
GetDir(0,OrigPwd);
|
|
GetDir(0,OrigPwd);
|
|
- Command('set print object off');
|
|
|
|
|
|
+ SetCommand('print object off');
|
|
{$ifdef SUPPORT_REMOTE}
|
|
{$ifdef SUPPORT_REMOTE}
|
|
isFirstRemote:=true;
|
|
isFirstRemote:=true;
|
|
{$ifdef FPC_ARMEL32}
|
|
{$ifdef FPC_ARMEL32}
|
|
{ GDB needs advice on exact file type }
|
|
{ GDB needs advice on exact file type }
|
|
- Command('set gnutarget elf32-littlearm');
|
|
|
|
|
|
+ SetCommand('gnutarget elf32-littlearm');
|
|
{$endif FPC_ARMEL32}
|
|
{$endif FPC_ARMEL32}
|
|
{$endif SUPPORT_REMOTE}
|
|
{$endif SUPPORT_REMOTE}
|
|
end;
|
|
end;
|
|
@@ -728,7 +728,7 @@ end;
|
|
procedure TDebugController.SetWidth(AWidth : longint);
|
|
procedure TDebugController.SetWidth(AWidth : longint);
|
|
begin
|
|
begin
|
|
WindowWidth:=AWidth;
|
|
WindowWidth:=AWidth;
|
|
- Command('set width '+inttostr(WindowWidth));
|
|
|
|
|
|
+ SetCommand('width '+inttostr(WindowWidth));
|
|
end;
|
|
end;
|
|
|
|
|
|
procedure TDebugController.SetSourceDirs;
|
|
procedure TDebugController.SetSourceDirs;
|
|
@@ -940,9 +940,9 @@ begin
|
|
{$ifdef Windows}
|
|
{$ifdef Windows}
|
|
{ Run the debugge in another console }
|
|
{ Run the debugge in another console }
|
|
if DebuggeeTTY<>'' then
|
|
if DebuggeeTTY<>'' then
|
|
- Command('set new-console on')
|
|
|
|
|
|
+ SetCommand('new-console on')
|
|
else
|
|
else
|
|
- Command('set new-console off');
|
|
|
|
|
|
+ SetCommand('new-console off');
|
|
NoSwitch:=DebuggeeTTY<>'';
|
|
NoSwitch:=DebuggeeTTY<>'';
|
|
{$endif Windows}
|
|
{$endif Windows}
|
|
{$ifdef Unix}
|
|
{$ifdef Unix}
|
|
@@ -3538,7 +3538,7 @@ end;
|
|
Clear;
|
|
Clear;
|
|
|
|
|
|
if Debugger^.WindowWidth<>-1 then
|
|
if Debugger^.WindowWidth<>-1 then
|
|
- Debugger^.Command('set width 0xffffffff');
|
|
|
|
|
|
+ Debugger^.SetCommand('width 0xffffffff');
|
|
Debugger^.Backtrace;
|
|
Debugger^.Backtrace;
|
|
{ generate list }
|
|
{ generate list }
|
|
{ all is in tframeentry }
|
|
{ all is in tframeentry }
|
|
@@ -3580,7 +3580,7 @@ end;
|
|
if Assigned(list) and (List^.Count > 0) then
|
|
if Assigned(list) and (List^.Count > 0) then
|
|
FocusItem(0);
|
|
FocusItem(0);
|
|
if Debugger^.WindowWidth<>-1 then
|
|
if Debugger^.WindowWidth<>-1 then
|
|
- Debugger^.Command('set width '+IntToStr(Debugger^.WindowWidth));
|
|
|
|
|
|
+ Debugger^.SetCommand('width '+IntToStr(Debugger^.WindowWidth));
|
|
DeskTop^.Unlock;
|
|
DeskTop^.Unlock;
|
|
{$endif NODEBUG}
|
|
{$endif NODEBUG}
|
|
end;
|
|
end;
|