mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 10:39:30 +02:00
debugger: fix compilation on mac
git-svn-id: trunk@43289 -
This commit is contained in:
parent
f9cf79728d
commit
74bd6a45c6
@ -1643,10 +1643,10 @@ begin
|
|||||||
Result := ExecuteCommand('-file-exec-and-symbols %s', [S], R);
|
Result := ExecuteCommand('-file-exec-and-symbols %s', [S], R);
|
||||||
if not Result then exit;
|
if not Result then exit;
|
||||||
{$IFDEF darwin}
|
{$IFDEF darwin}
|
||||||
if (R.State = dsError) and (FFileName <> '')
|
if (R.State = dsError) and (FTheDebugger.FileName <> '')
|
||||||
then begin
|
then begin
|
||||||
FFileName := FFileName + '/Contents/MacOS/' + ExtractFileNameOnly(FTheDebugger.FileName);
|
S := FTheDebugger.FileName + '/Contents/MacOS/' + ExtractFileNameOnly(FTheDebugger.FileName);
|
||||||
S := FTheDebugger.ConvertToGDBPath(UTF8ToSys(FFileName), cgptExeName);
|
S := FTheDebugger.ConvertToGDBPath(UTF8ToSys(S), cgptExeName);
|
||||||
Result := ExecuteCommand('-file-exec-and-symbols %s', [S], R);
|
Result := ExecuteCommand('-file-exec-and-symbols %s', [S], R);
|
||||||
if not Result then exit;
|
if not Result then exit;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user