IDEIntf: renamed TDebuggerIntf.HasExePath to NeedsExePath, old kept as deprecated

git-svn-id: trunk@47106 -
This commit is contained in:
mattias 2014-12-04 18:42:47 +00:00
parent e2c1838d3d
commit d7122737e1
5 changed files with 14 additions and 8 deletions

View File

@ -1729,7 +1729,8 @@ type
public
class function Caption: String; virtual; // The name of the debugger as shown in the debuggeroptions
class function ExePaths: String; virtual; // The default locations of the exe
class function HasExePath: boolean; virtual; // If the debugger needs to have an exe path
class function HasExePath: boolean; virtual; deprecated; // use NeedsExePath instead
class function NeedsExePath: boolean; virtual; // If the debugger needs to have an exe path
// debugger properties
class function CreateProperties: TDebuggerProperties; virtual; // Creates debuggerproperties
@ -5484,6 +5485,11 @@ begin
Result := true; // most debugger are external and have an exe path
end;
class function TDebuggerIntf.NeedsExePath: boolean;
begin
Result := HasExePath;
end;
function TDebuggerIntf.GetCommands: TDBGCommands;
begin
Result := COMMANDMAP[State] * GetSupportedCommands;

View File

@ -156,7 +156,7 @@ type
function GetLocationRec(AnAddress: TDBGPtr=0): TDBGLocationRec;
function GetLocation: TDBGLocationRec; override;
class function Caption: String; override;
class function HasExePath: boolean; override;
class function NeedsExePath: boolean; override;
class function CreateProperties: TDebuggerProperties; override;
function GetSupportedCommands: TDBGCommands; override;
end;
@ -1799,7 +1799,7 @@ begin
Result:='FpDebug internal Dwarf-debugger (alpha)';
end;
class function TFpDebugDebugger.HasExePath: boolean;
class function TFpDebugDebugger.NeedsExePath: boolean;
begin
Result:=False;
end;

View File

@ -293,7 +293,7 @@ function TDebuggerGeneralOptionsFrame.Check: Boolean;
begin
Result := false;
if assigned(FCurDebuggerClass) and FCurDebuggerClass.HasExePath
if assigned(FCurDebuggerClass) and FCurDebuggerClass.NeedsExePath
and (EnvironmentOptions.DebuggerFilename <> cmbDebuggerPath.Text)
then begin
EnvironmentOptions.DebuggerFilename := cmbDebuggerPath.Text;

View File

@ -57,7 +57,7 @@ type
function RequestCommand(const ACommand: TDBGCommand; const AParams: array of const): Boolean; override;
public
class function Caption: String; override;
class function HasExePath: boolean; override;
class function NeedsExePath: boolean; override;
published
end;
@ -169,7 +169,7 @@ begin
Result := '(none)';
end;
class function TProcessDebugger.HasExePath: boolean;
class function TProcessDebugger.NeedsExePath: boolean;
begin
Result:= false; // no need to have a valid exe path for the process debugger
end;

View File

@ -2168,7 +2168,7 @@ begin
end;
// check if debugger needs an Exe and the exe is there
if (NewDebuggerClass.HasExePath)
if (NewDebuggerClass.NeedsExePath)
and not FileIsExecutable(EnvironmentOptions.GetParsedDebuggerFilename)
then begin
if not PromptOnError then
@ -2351,7 +2351,7 @@ var
begin
DbgClass:=FindDebuggerClass(EnvironmentOptions.DebuggerConfig.DebuggerClass);
if (DbgClass=nil)
or (DbgClass.HasExePath
or (DbgClass.NeedsExePath
and (not FileIsExecutableCached(EnvironmentOptions.GetParsedDebuggerFilename)))
then begin
if IDEQuestionDialog(lisDbgMangNoDebuggerSpecified,