mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 01:11:07 +02:00
Debugger: let the debugger request certain compiler opts (eg: needs dwarf, or external info)
git-svn-id: trunk@58680 -
This commit is contained in:
parent
9f8beba93e
commit
b3d8d81fe7
@ -2057,10 +2057,10 @@ end;
|
|||||||
class function TFpDebugDebugger.RequiredCompilerOpts(ATargetCPU, ATargetOS: String): TDebugCompilerRequirements;
|
class function TFpDebugDebugger.RequiredCompilerOpts(ATargetCPU, ATargetOS: String): TDebugCompilerRequirements;
|
||||||
begin
|
begin
|
||||||
{$ifdef CD_Cocoa}{$DEFINE MacOS}
|
{$ifdef CD_Cocoa}{$DEFINE MacOS}
|
||||||
if ATargetCPU = '' then ATargetCPU := 'x86_64'
|
if ATargetCPU = '' then ATargetCPU := 'x86_64';
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
{$IFDEF Darwin}{$DEFINE MacOS}
|
{$IFDEF Darwin}{$DEFINE MacOS}
|
||||||
if ATargetCPU = '' then ATargetCPU := 'i386'
|
if ATargetCPU = '' then ATargetCPU := 'i386';
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
{$IFDEF MacOs}
|
{$IFDEF MacOs}
|
||||||
if LowerCase(ATargetCPU) = 'i386' then
|
if LowerCase(ATargetCPU) = 'i386' then
|
||||||
|
@ -1150,10 +1150,10 @@ end;
|
|||||||
class function TFpLldbDebugger.RequiredCompilerOpts(ATargetCPU, ATargetOS: String): TDebugCompilerRequirements;
|
class function TFpLldbDebugger.RequiredCompilerOpts(ATargetCPU, ATargetOS: String): TDebugCompilerRequirements;
|
||||||
begin
|
begin
|
||||||
{$ifdef CD_Cocoa}{$DEFINE MacOS}
|
{$ifdef CD_Cocoa}{$DEFINE MacOS}
|
||||||
if ATargetCPU = '' then ATargetCPU := 'x86_64'
|
if ATargetCPU = '' then ATargetCPU := 'x86_64';
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
{$IFDEF Darwin}{$DEFINE MacOS}
|
{$IFDEF Darwin}{$DEFINE MacOS}
|
||||||
if ATargetCPU = '' then ATargetCPU := 'i386'
|
if ATargetCPU = '' then ATargetCPU := 'i386';
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
{$IFDEF MacOs}
|
{$IFDEF MacOs}
|
||||||
if LowerCase(ATargetCPU) = 'i386' then
|
if LowerCase(ATargetCPU) = 'i386' then
|
||||||
|
@ -214,6 +214,8 @@ type
|
|||||||
procedure Init; override; // Initializes external debugger
|
procedure Init; override; // Initializes external debugger
|
||||||
procedure Done; override; // Kills external debugger
|
procedure Done; override; // Kills external debugger
|
||||||
|
|
||||||
|
class function RequiredCompilerOpts(ATargetCPU, ATargetOS: String
|
||||||
|
): TDebugCompilerRequirements; override;
|
||||||
function GetLocation: TDBGLocationRec; override;
|
function GetLocation: TDBGLocationRec; override;
|
||||||
// function GetProcessList({%H-}AList: TRunningProcessInfoList): boolean; override;
|
// function GetProcessList({%H-}AList: TRunningProcessInfoList): boolean; override;
|
||||||
// function NeedReset: Boolean; override;
|
// function NeedReset: Boolean; override;
|
||||||
@ -1929,6 +1931,12 @@ begin
|
|||||||
DebugLnExit('!!! TLldbDebugger.Done;');
|
DebugLnExit('!!! TLldbDebugger.Done;');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
class function TLldbDebugger.RequiredCompilerOpts(ATargetCPU, ATargetOS: String
|
||||||
|
): TDebugCompilerRequirements;
|
||||||
|
begin
|
||||||
|
Result:=[dcrDwarfOnly];
|
||||||
|
end;
|
||||||
|
|
||||||
function TLldbDebugger.GetLocation: TDBGLocationRec;
|
function TLldbDebugger.GetLocation: TDBGLocationRec;
|
||||||
begin
|
begin
|
||||||
Result := FCurrentLocation;
|
Result := FCurrentLocation;
|
||||||
|
Loading…
Reference in New Issue
Block a user