* Extract debug-info from real executable when debugging an application folder

git-svn-id: trunk@47188 -
This commit is contained in:
joost 2014-12-13 09:15:26 +00:00
parent 3dcfa14f49
commit a3f3091a75

View File

@ -128,6 +128,7 @@ type
FIsTerminating: boolean;
FExceptionSignal: PtrUInt;
FMasterPtyFd: cint;
FExecutableFilename: string;
function GetDebugAccessRights: boolean;
{$ifndef VER2_6}
procedure OnForkEvent(Sender : TObject);
@ -620,7 +621,7 @@ end;
function TDbgDarwinProcess.InitializeLoader: TDbgImageLoader;
begin
result := TDbgImageLoader.Create(Name);
result := TDbgImageLoader.Create(FExecutableFilename);
end;
function TDbgDarwinProcess.CreateThread(AthreadIdentifier: THandle; out IsMainThread: boolean): TDbgThread;
@ -747,6 +748,7 @@ begin
result := TDbgDarwinProcess.Create(AFileName, Pid, -1, AOnLog);
TDbgDarwinProcess(result).FMasterPtyFd := GMasterPtyFd;
TDbgDarwinProcess(result).FProcProcess := AProcess;
TDbgDarwinProcess(result).FExecutableFilename := AnExecutabeFilename;
except
on E: Exception do
begin