mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-22 02:39:23 +02:00
parent
e569548620
commit
1f395d4f2b
@ -625,10 +625,10 @@ constructor TDbgDarwinProcess.Create(const AName: string; const AProcessID,
|
|||||||
var
|
var
|
||||||
aKernResult: kern_return_t;
|
aKernResult: kern_return_t;
|
||||||
begin
|
begin
|
||||||
inherited Create(AName, AProcessID, AThreadID, AnOsClasses{$IF FPC_FULLVERSION<30100}, AMemManager{$ENDIF});
|
inherited Create(AName, AProcessID, AThreadID, AnOsClasses, AMemManager);
|
||||||
|
|
||||||
GetDebugAccessRights;
|
GetDebugAccessRights;
|
||||||
aKernResult:=task_for_pid(mach_task_self, AProcessID, FTaskPort{$IF FPC_FULLVERSION>30100}, AMemmanager{$ENDIF});
|
aKernResult:=task_for_pid(mach_task_self, AProcessID, FTaskPort);
|
||||||
if aKernResult <> KERN_SUCCESS then
|
if aKernResult <> KERN_SUCCESS then
|
||||||
begin
|
begin
|
||||||
debugln(DBG_WARNINGS, 'Failed to get task for process '+IntToStr(AProcessID)+'. Probably insufficient rights to debug applications. Mach error: '+mach_error_string(aKernResult));
|
debugln(DBG_WARNINGS, 'Failed to get task for process '+IntToStr(AProcessID)+'. Probably insufficient rights to debug applications. Mach error: '+mach_error_string(aKernResult));
|
||||||
|
Loading…
Reference in New Issue
Block a user