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:
Gregory John Casamento 2008-12-16 21:31:41 +00:00
parent 1597cd9cee
commit 173eb165ac
8 changed files with 116 additions and 0 deletions

View 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

View 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

View 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

View file

@ -0,0 +1,8 @@
/* All Rights reserved */
#include <AppKit/AppKit.h>
@interface PCDebuggerView : NSTextView
{
}
@end

View file

@ -0,0 +1,8 @@
/* All Rights reserved */
#include <AppKit/AppKit.h>
#include "PCDebuggerView.h"
@implementation PCDebuggerView
@end

View file

@ -0,0 +1,18 @@
{
"## Comment" = "Do NOT change this file, Gorm maintains it";
PCDebugger = {
Actions = (
);
Outlets = (
consoleView
);
Super = NSObject;
};
PCDebuggerView = {
Actions = (
);
Outlets = (
);
Super = NSTextView;
};
}