debugger: fix compilation on mac

git-svn-id: trunk@43289 -
This commit is contained in:
paul 2013-10-20 03:24:35 +00:00
parent f9cf79728d
commit 74bd6a45c6

View File

@ -1643,10 +1643,10 @@ begin
Result := ExecuteCommand('-file-exec-and-symbols %s', [S], R);
if not Result then exit;
{$IFDEF darwin}
if (R.State = dsError) and (FFileName <> '')
if (R.State = dsError) and (FTheDebugger.FileName <> '')
then begin
FFileName := FFileName + '/Contents/MacOS/' + ExtractFileNameOnly(FTheDebugger.FileName);
S := FTheDebugger.ConvertToGDBPath(UTF8ToSys(FFileName), cgptExeName);
S := FTheDebugger.FileName + '/Contents/MacOS/' + ExtractFileNameOnly(FTheDebugger.FileName);
S := FTheDebugger.ConvertToGDBPath(UTF8ToSys(S), cgptExeName);
Result := ExecuteCommand('-file-exec-and-symbols %s', [S], R);
if not Result then exit;
end;