MWE: + Added working dir

git-svn-id: trunk@4247 -
This commit is contained in:
marc 2003-06-09 14:16:52 +00:00
parent 57effbf6b3
commit e23ac51d8f

View File

@ -589,11 +589,13 @@ type
FOnOutput: TDBGOutputEvent;
FOnDbgOutput: TDBGOutputEvent;
FOnState: TDebuggerStateChangedEvent;
FWorkingDir: String;
function GetState: TDBGState;
function ReqCmd(const ACommand: TDBGCommand;
const AParams: array of const): Boolean;
procedure SetEnvironment(const AValue: TStrings);
procedure SetFileName(const AValue: String);
procedure SetWorkingDir (const AValue: String );
protected
function CreateBreakPoints: TDBGBreakPoints; virtual;
function CreateLocals: TDBGLocals; virtual;
@ -605,6 +607,7 @@ type
procedure DoOutput(const AText: String);
procedure DoState(const OldState: TDBGState); virtual;
function ChangeFileName: Boolean; virtual;
function ChangeWorkingDir: Boolean; virtual;
function GetCommands: TDBGCommands;
function GetSupportedCommands: TDBGCommands; virtual;
function RequestCommand(const ACommand: TDBGCommand;
@ -658,6 +661,7 @@ type
property State: TDBGState read FState; // The current state of the debugger
property SupportedCommands: TDBGCommands read GetSupportedCommands; // All available commands of the debugger
property Watches: TDBGWatches read FWatches; // list of all watches localvars etc
property WorkingDir: String read FWorkingDir write SetWorkingDir; // The wirking dir of the exe being debugged
end;
const
@ -739,6 +743,11 @@ begin
Result := True;
end;
function TDebugger.ChangeWorkingDir: Boolean;
begin
Result := True;
end;
constructor TDebugger.Create(const AExternalDebugger: String);
begin
inherited Create;
@ -981,6 +990,13 @@ begin
end;
end;
procedure TDebugger.SetWorkingDir (const AValue: String );
begin
if FWorkingDir = AValue then exit;
FWorkingDir := AValue;
ChangeWorkingDir;
end;
procedure TDebugger.InitTargetStart;
begin
FBreakPoints.InitTargetStart;
@ -2454,6 +2470,9 @@ end;
end.
{ =============================================================================
$Log$
Revision 1.40 2003/06/09 14:16:52 marc
MWE: + Added working dir
Revision 1.39 2003/06/03 16:12:14 mattias
fixed loading bookmarks for editor index 0