|
@@ -1,7 +1,7 @@
|
|
{
|
|
{
|
|
$Id$
|
|
$Id$
|
|
This file is part of the Free Pascal Integrated Development Environment
|
|
This file is part of the Free Pascal Integrated Development Environment
|
|
- Copyright (c) 1998 by Berczi Gabor
|
|
|
|
|
|
+ Copyright (c) 1998-2000 by Pierre Muller
|
|
|
|
|
|
Debugger call routines for the IDE
|
|
Debugger call routines for the IDE
|
|
|
|
|
|
@@ -341,6 +341,9 @@ implementation
|
|
uses
|
|
uses
|
|
Dos,Mouse,Video,
|
|
Dos,Mouse,Video,
|
|
App,Commands,Strings,
|
|
App,Commands,Strings,
|
|
|
|
+{$ifdef win32}
|
|
|
|
+ Windebug,
|
|
|
|
+{$endif win32}
|
|
Systems,
|
|
Systems,
|
|
FPVars,FPUtils,FPConst,FPSwitch,
|
|
FPVars,FPUtils,FPConst,FPSwitch,
|
|
FPIntf,FPCompile,FPIde,FPHelp,
|
|
FPIntf,FPCompile,FPIde,FPHelp,
|
|
@@ -652,7 +655,7 @@ end;
|
|
|
|
|
|
function TDebugController.AllowQuit : boolean;
|
|
function TDebugController.AllowQuit : boolean;
|
|
begin
|
|
begin
|
|
- if ConfirmBox('Really quit editor ?',nil,true)=cmOK then
|
|
|
|
|
|
+ if ConfirmBox('Really quit editor?',nil,true)=cmOK then
|
|
begin
|
|
begin
|
|
Message(@IDEApp,evCommand,cmQuit,nil);
|
|
Message(@IDEApp,evCommand,cmQuit,nil);
|
|
end
|
|
end
|
|
@@ -821,18 +824,28 @@ end;
|
|
procedure TDebugController.DoDebuggerScreen;
|
|
procedure TDebugController.DoDebuggerScreen;
|
|
begin
|
|
begin
|
|
if NoSwitch then
|
|
if NoSwitch then
|
|
- PopStatus
|
|
|
|
|
|
+ begin
|
|
|
|
+ PopStatus;
|
|
|
|
+ end
|
|
else
|
|
else
|
|
IDEApp.ShowIDEScreen;
|
|
IDEApp.ShowIDEScreen;
|
|
|
|
+{$ifdef win32}
|
|
|
|
+ ChangeDebuggeeWindowTitleTo(Stopped_State);
|
|
|
|
+{$endif win32}
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure TDebugController.DoUserScreen;
|
|
procedure TDebugController.DoUserScreen;
|
|
begin
|
|
begin
|
|
if NoSwitch then
|
|
if NoSwitch then
|
|
- PushStatus('Executable running in another window..')
|
|
|
|
|
|
+ begin
|
|
|
|
+ PushStatus('Executable running in another window..');
|
|
|
|
+ end
|
|
else
|
|
else
|
|
IDEApp.ShowUserScreen;
|
|
IDEApp.ShowUserScreen;
|
|
|
|
+{$ifdef win32}
|
|
|
|
+ ChangeDebuggeeWindowTitleTo(Running_State);
|
|
|
|
+{$endif win32}
|
|
end;
|
|
end;
|
|
|
|
|
|
{****************************************************************************
|
|
{****************************************************************************
|
|
@@ -3217,7 +3230,10 @@ end.
|
|
|
|
|
|
{
|
|
{
|
|
$Log$
|
|
$Log$
|
|
- Revision 1.53 2000-02-07 12:51:32 pierre
|
|
|
|
|
|
+ Revision 1.54 2000-03-06 11:34:25 pierre
|
|
|
|
+ + windebug unit for Window Title change when debugging
|
|
|
|
+
|
|
|
|
+ Revision 1.53 2000/02/07 12:51:32 pierre
|
|
* typo fix
|
|
* typo fix
|
|
|
|
|
|
Revision 1.52 2000/02/07 11:50:30 pierre
|
|
Revision 1.52 2000/02/07 11:50:30 pierre
|