FpDebugger (pure): Implemented pause (Linux)

git-svn-id: trunk@45867 -
This commit is contained in:
joost 2014-07-14 20:32:01 +00:00
parent e5f73f7d0f
commit 93618ffad0

View File

@ -261,6 +261,7 @@ type
function GetStackPointerRegisterValue: TDbgPtr; override;
function GetStackBasePointerRegisterValue: TDbgPtr; override;
procedure TerminateProcess; override;
function Pause: boolean; override;
function Continue(AProcess: TDbgProcess; AThread: TDbgThread; SingleStep: boolean): boolean; override;
function WaitForDebugEvent(out ProcessIdentifier, ThreadIdentifier: THandle): boolean; override;
@ -711,6 +712,15 @@ begin
end;
end;
function TDbgLinuxProcess.Pause: boolean;
begin
result := fpkill(ProcessID, SIGTRAP)=0;
if not result then
begin
log('Failed to send SIGTRAP to process %d. Errno: %d',[ProcessID, errno]);
end;
end;
function TDbgLinuxProcess.Continue(AProcess: TDbgProcess; AThread: TDbgThread; SingleStep: boolean): boolean;
var
e: integer;