mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-20 18:32:17 +00:00
Beginnings of debugger interface.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@27314 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1597cd9cee
commit
173eb165ac
8 changed files with 116 additions and 0 deletions
39
Modules/Debuggers/ProjectCenter/GNUmakefile
Normal file
39
Modules/Debuggers/ProjectCenter/GNUmakefile
Normal file
|
@ -0,0 +1,39 @@
|
|||
#
|
||||
# GNUmakefile - ProjectCenter.debugger
|
||||
#
|
||||
|
||||
include $(GNUSTEP_MAKEFILES)/common.make
|
||||
|
||||
#
|
||||
# Bundle
|
||||
#
|
||||
BUNDLE_NAME = ProjectCenter
|
||||
BUNDLE_EXTENSION = .debugger
|
||||
ProjectCenter_PRINCIPAL_CLASS = PCDebugger
|
||||
|
||||
#
|
||||
# Additional libraries
|
||||
#
|
||||
ProjectCenter_LIBRARIES_DEPEND_UPON +=
|
||||
|
||||
#
|
||||
# Resource files
|
||||
#
|
||||
ProjectCenter_RESOURCE_FILES= \
|
||||
|
||||
#
|
||||
# Header files
|
||||
#
|
||||
ProjectCenter_HEADERS= \
|
||||
PCDebugger.h \
|
||||
PCDebugggerView.h
|
||||
|
||||
#
|
||||
# Class files
|
||||
#
|
||||
ProjectCenter_OBJC_FILES= \
|
||||
PCDebugger.m \
|
||||
PCDebuggerView.m
|
||||
|
||||
include ../../GNUmakefile.bundles
|
||||
include $(GNUSTEP_MAKEFILES)/bundle.make
|
14
Modules/Debuggers/ProjectCenter/PCDebugger.h
Normal file
14
Modules/Debuggers/ProjectCenter/PCDebugger.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
/* All Rights reserved */
|
||||
|
||||
#include <AppKit/AppKit.h>
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
@interface PCDebugger : NSObject
|
||||
{
|
||||
id consoleView;
|
||||
id consoleWindow;
|
||||
NSTask *debuggerTask;
|
||||
id standardInput;
|
||||
id standardOutput;
|
||||
}
|
||||
@end
|
29
Modules/Debuggers/ProjectCenter/PCDebugger.m
Normal file
29
Modules/Debuggers/ProjectCenter/PCDebugger.m
Normal file
|
@ -0,0 +1,29 @@
|
|||
/* All Rights reserved */
|
||||
|
||||
#include <AppKit/AppKit.h>
|
||||
#include "PCDebugger.h"
|
||||
|
||||
@implementation PCDebugger
|
||||
- (id) init
|
||||
{
|
||||
if((self == [super init]) != nil)
|
||||
{
|
||||
// initialization here...
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void) startDebugger
|
||||
{
|
||||
debuggerTask = [NSTask launchedTaskWithLaunchPath: @"/usr/bin/gdb"
|
||||
arguments: @""];
|
||||
standardInput = [debuggerTask standardInput];
|
||||
standardOutput = [debuggerTask standardOutput];
|
||||
}
|
||||
|
||||
- (void) awakeFromNib
|
||||
{
|
||||
[consoleView setFont: [NSFont userFixedPitchFontOfSize: 0]];
|
||||
[self startDebugger];
|
||||
}
|
||||
@end
|
8
Modules/Debuggers/ProjectCenter/PCDebuggerView.h
Normal file
8
Modules/Debuggers/ProjectCenter/PCDebuggerView.h
Normal file
|
@ -0,0 +1,8 @@
|
|||
/* All Rights reserved */
|
||||
|
||||
#include <AppKit/AppKit.h>
|
||||
|
||||
@interface PCDebuggerView : NSTextView
|
||||
{
|
||||
}
|
||||
@end
|
8
Modules/Debuggers/ProjectCenter/PCDebuggerView.m
Normal file
8
Modules/Debuggers/ProjectCenter/PCDebuggerView.m
Normal file
|
@ -0,0 +1,8 @@
|
|||
/* All Rights reserved */
|
||||
|
||||
#include <AppKit/AppKit.h>
|
||||
#include "PCDebuggerView.h"
|
||||
|
||||
@implementation PCDebuggerView
|
||||
|
||||
@end
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"## Comment" = "Do NOT change this file, Gorm maintains it";
|
||||
PCDebugger = {
|
||||
Actions = (
|
||||
);
|
||||
Outlets = (
|
||||
consoleView
|
||||
);
|
||||
Super = NSObject;
|
||||
};
|
||||
PCDebuggerView = {
|
||||
Actions = (
|
||||
);
|
||||
Outlets = (
|
||||
);
|
||||
Super = NSTextView;
|
||||
};
|
||||
}
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue