mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-14 11:39:25 +02:00
MWE: + Added working dir
git-svn-id: trunk@4247 -
This commit is contained in:
parent
57effbf6b3
commit
e23ac51d8f
@ -589,11 +589,13 @@ type
|
|||||||
FOnOutput: TDBGOutputEvent;
|
FOnOutput: TDBGOutputEvent;
|
||||||
FOnDbgOutput: TDBGOutputEvent;
|
FOnDbgOutput: TDBGOutputEvent;
|
||||||
FOnState: TDebuggerStateChangedEvent;
|
FOnState: TDebuggerStateChangedEvent;
|
||||||
|
FWorkingDir: String;
|
||||||
function GetState: TDBGState;
|
function GetState: TDBGState;
|
||||||
function ReqCmd(const ACommand: TDBGCommand;
|
function ReqCmd(const ACommand: TDBGCommand;
|
||||||
const AParams: array of const): Boolean;
|
const AParams: array of const): Boolean;
|
||||||
procedure SetEnvironment(const AValue: TStrings);
|
procedure SetEnvironment(const AValue: TStrings);
|
||||||
procedure SetFileName(const AValue: String);
|
procedure SetFileName(const AValue: String);
|
||||||
|
procedure SetWorkingDir (const AValue: String );
|
||||||
protected
|
protected
|
||||||
function CreateBreakPoints: TDBGBreakPoints; virtual;
|
function CreateBreakPoints: TDBGBreakPoints; virtual;
|
||||||
function CreateLocals: TDBGLocals; virtual;
|
function CreateLocals: TDBGLocals; virtual;
|
||||||
@ -605,6 +607,7 @@ type
|
|||||||
procedure DoOutput(const AText: String);
|
procedure DoOutput(const AText: String);
|
||||||
procedure DoState(const OldState: TDBGState); virtual;
|
procedure DoState(const OldState: TDBGState); virtual;
|
||||||
function ChangeFileName: Boolean; virtual;
|
function ChangeFileName: Boolean; virtual;
|
||||||
|
function ChangeWorkingDir: Boolean; virtual;
|
||||||
function GetCommands: TDBGCommands;
|
function GetCommands: TDBGCommands;
|
||||||
function GetSupportedCommands: TDBGCommands; virtual;
|
function GetSupportedCommands: TDBGCommands; virtual;
|
||||||
function RequestCommand(const ACommand: TDBGCommand;
|
function RequestCommand(const ACommand: TDBGCommand;
|
||||||
@ -658,6 +661,7 @@ type
|
|||||||
property State: TDBGState read FState; // The current state of the debugger
|
property State: TDBGState read FState; // The current state of the debugger
|
||||||
property SupportedCommands: TDBGCommands read GetSupportedCommands; // All available commands 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 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;
|
end;
|
||||||
|
|
||||||
const
|
const
|
||||||
@ -739,6 +743,11 @@ begin
|
|||||||
Result := True;
|
Result := True;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TDebugger.ChangeWorkingDir: Boolean;
|
||||||
|
begin
|
||||||
|
Result := True;
|
||||||
|
end;
|
||||||
|
|
||||||
constructor TDebugger.Create(const AExternalDebugger: String);
|
constructor TDebugger.Create(const AExternalDebugger: String);
|
||||||
begin
|
begin
|
||||||
inherited Create;
|
inherited Create;
|
||||||
@ -981,6 +990,13 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TDebugger.SetWorkingDir (const AValue: String );
|
||||||
|
begin
|
||||||
|
if FWorkingDir = AValue then exit;
|
||||||
|
FWorkingDir := AValue;
|
||||||
|
ChangeWorkingDir;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TDebugger.InitTargetStart;
|
procedure TDebugger.InitTargetStart;
|
||||||
begin
|
begin
|
||||||
FBreakPoints.InitTargetStart;
|
FBreakPoints.InitTargetStart;
|
||||||
@ -2454,6 +2470,9 @@ end;
|
|||||||
end.
|
end.
|
||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
$Log$
|
$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
|
Revision 1.39 2003/06/03 16:12:14 mattias
|
||||||
fixed loading bookmarks for editor index 0
|
fixed loading bookmarks for editor index 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user