mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-26 02:19:09 +02:00
FpDebugger (pure): Implemented pause (Linux)
git-svn-id: trunk@45867 -
This commit is contained in:
parent
e5f73f7d0f
commit
93618ffad0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user