mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-15 16:11:25 +00:00
* Framework/PCProjectLauncher.m: Remove local variable for debugger from
method. Also add it to the launcher dealloc method. * Headers/ProjectCenter/PCProjectLauncher.h: Add an ivar for the debugger. * Modules/Debuggers/ProjectCenter/PCDebugger.m: Add dealloc to shut down the debugger window when it's dealloc. * Modules/Debuggers/ProjectCenter/PCDebuggerView.m: Don't set status when terminated, since it causes a crash. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@27445 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
fc1d806411
commit
591ef01a5b
5 changed files with 26 additions and 4 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
2008-12-29 00:30-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Framework/PCProjectLauncher.m: Remove local variable for debugger from
|
||||
method. Also add it to the launcher dealloc method.
|
||||
* Headers/ProjectCenter/PCProjectLauncher.h: Add an ivar for the debugger.
|
||||
* Modules/Debuggers/ProjectCenter/PCDebugger.m: Add dealloc to shut down
|
||||
the debugger window when it's dealloc.
|
||||
* Modules/Debuggers/ProjectCenter/PCDebuggerView.m: Don't set status when
|
||||
terminated, since it causes a crash.
|
||||
|
||||
2008-12-28 11:25-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Modules/Debuggers/ProjectCenter/PCDebugger.m: Added code
|
||||
|
|
|
@ -33,8 +33,6 @@
|
|||
#include <ProjectCenter/PCButton.h>
|
||||
#include <ProjectCenter/PCLogController.h>
|
||||
|
||||
#include <Protocols/CodeDebugger.h>
|
||||
|
||||
#ifndef NOTIFICATION_CENTER
|
||||
#define NOTIFICATION_CENTER [NSNotificationCenter defaultCenter]
|
||||
#endif
|
||||
|
@ -163,6 +161,7 @@ enum {
|
|||
#endif
|
||||
RELEASE (componentView);
|
||||
RELEASE (textAttributes);
|
||||
RELEASE (debugger);
|
||||
|
||||
[super dealloc];
|
||||
}
|
||||
|
@ -211,7 +210,6 @@ enum {
|
|||
NSString *gdbPath = nil;
|
||||
NSFileManager *fm = [NSFileManager defaultManager];
|
||||
PCBundleManager *bundleManager = [[project projectManager] bundleManager];
|
||||
id<CodeDebugger> debugger;
|
||||
|
||||
// Check if project type is executable
|
||||
if (![project isExecutable])
|
||||
|
|
|
@ -27,10 +27,13 @@
|
|||
#define _PCProjectDebugger_h_
|
||||
|
||||
#include <AppKit/AppKit.h>
|
||||
#include <Protocols/CodeDebugger.h>
|
||||
|
||||
@class PCProject;
|
||||
@class PCButton;
|
||||
|
||||
@protocol CodeDebugger;
|
||||
|
||||
@interface PCProjectLauncher : NSObject
|
||||
{
|
||||
PCProject *project; // Not retained!
|
||||
|
@ -47,6 +50,7 @@
|
|||
NSFileHandle *errorReadHandle;
|
||||
NSTask *launchTask;
|
||||
|
||||
id<CodeDebugger> debugger;
|
||||
BOOL _isRunning;
|
||||
BOOL _isDebugging;
|
||||
}
|
||||
|
|
|
@ -208,6 +208,12 @@ static NSImage *stepOutImage = nil;
|
|||
{
|
||||
return [statusField stringValue];
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
[debuggerWindow close];
|
||||
[super dealloc];
|
||||
}
|
||||
@end
|
||||
|
||||
@implementation PCDebugger (NSToolbarDelegate)
|
||||
|
|
|
@ -176,6 +176,10 @@
|
|||
- (void) terminate
|
||||
{
|
||||
[super terminate];
|
||||
[debugger setStatus: @"Process ended."];
|
||||
}
|
||||
|
||||
- (void) mouseDown: (NSEvent *)event
|
||||
{
|
||||
// do nothing...
|
||||
}
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue