1E027F0B0D36F23F00885DEE /* StepOver.png in Resources */ = {isa = PBXBuildFile; fileRef = 1E027F090D36F23F00885DEE /* StepOver.png */; };
1E027F390D36F60800885DEE /* Reconnect.png in Resources */ = {isa = PBXBuildFile; fileRef = 1E027F380D36F60800885DEE /* Reconnect.png */; };
1E02C3D50C60EC2C006F1752 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 1E02C3D40C60EC2C006F1752 /* AppDelegate.m */; };
- 1E02C5710C610158006F1752 /* DebuggerConnection.m in Sources */ = {isa = PBXBuildFile; fileRef = 1E02C5700C610158006F1752 /* DebuggerConnection.m */; };
+ 1E02C5710C610158006F1752 /* DebuggerProcessor.m in Sources */ = {isa = PBXBuildFile; fileRef = 1E02C5700C610158006F1752 /* DebuggerProcessor.m */; };
1E02C5F60C610724006F1752 /* DebuggerController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1E02C5F50C610724006F1752 /* DebuggerController.m */; };
1E0AFBB90FC2518700C67031 /* HUDIcon.png in Resources */ = {isa = PBXBuildFile; fileRef = 1E0AFBB80FC2518700C67031 /* HUDIcon.png */; };
1E1E53030DF9B89800D334F9 /* Breakpoints.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1E1E53010DF9B89800D334F9 /* Breakpoints.xib */; };
1E027F380D36F60800885DEE /* Reconnect.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Reconnect.png; path = Icons/Reconnect.png; sourceTree = "<group>"; };
1E02C3D30C60EC2C006F1752 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = Source/AppDelegate.h; sourceTree = "<group>"; };
1E02C3D40C60EC2C006F1752 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = Source/AppDelegate.m; sourceTree = "<group>"; };
- 1E02C56F0C610158006F1752 /* DebuggerConnection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DebuggerConnection.h; path = Source/DebuggerConnection.h; sourceTree = "<group>"; };
- 1E02C5700C610158006F1752 /* DebuggerConnection.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DebuggerConnection.m; path = Source/DebuggerConnection.m; sourceTree = "<group>"; };
+ 1E02C56F0C610158006F1752 /* DebuggerProcessor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DebuggerProcessor.h; path = Source/DebuggerProcessor.h; sourceTree = "<group>"; };
+ 1E02C5700C610158006F1752 /* DebuggerProcessor.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DebuggerProcessor.m; path = Source/DebuggerProcessor.m; sourceTree = "<group>"; };
1E02C5F40C610724006F1752 /* DebuggerController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DebuggerController.h; path = Source/DebuggerController.h; sourceTree = "<group>"; };
1E02C5F50C610724006F1752 /* DebuggerController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DebuggerController.m; path = Source/DebuggerController.m; sourceTree = "<group>"; };
1E0AFBB80FC2518700C67031 /* HUDIcon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = HUDIcon.png; path = Icons/HUDIcon.png; sourceTree = "<group>"; };
1E1E52C10DF9B1FB00D334F9 /* Connection */ = {
isa = PBXGroup;
children = (
- 1E02C56F0C610158006F1752 /* DebuggerConnection.h */,
- 1E02C5700C610158006F1752 /* DebuggerConnection.m */,
+ 1E02C56F0C610158006F1752 /* DebuggerProcessor.h */,
+ 1E02C5700C610158006F1752 /* DebuggerProcessor.m */,
1E35FFB00C65A74C0030F527 /* NSXMLElementAdditions.h */,
1E35FC750C6579CA0030F527 /* NSXMLElementAdditions.m */,
1E6B5945116106FE001189D2 /* LoggingController.h */,
files = (
8D11072D0486CEB800E47090 /* main.m in Sources */,
1E02C3D50C60EC2C006F1752 /* AppDelegate.m in Sources */,
- 1E02C5710C610158006F1752 /* DebuggerConnection.m in Sources */,
+ 1E02C5710C610158006F1752 /* DebuggerProcessor.m in Sources */,
1E02C5F60C610724006F1752 /* DebuggerController.m in Sources */,
1E35FC760C6579CA0030F527 /* NSXMLElementAdditions.m in Sources */,
1E35FEA10C6599040030F527 /* base64.c in Sources */,
#import <Cocoa/Cocoa.h>
#import "Breakpoint.h"
-#import "DebuggerConnection.h"
+#import "DebuggerProcessor.h"
@interface BreakpointManager : NSObject
{
NSMutableArray* breakpoints;
NSMutableArray* savedBreakpoints;
- DebuggerConnection* connection;
+ DebuggerProcessor* connection;
}
-@property(readwrite, assign) DebuggerConnection* connection;
+@property(readwrite, assign) DebuggerProcessor* connection;
@property(readonly) NSMutableArray* breakpoints;
+ (BreakpointManager*)sharedManager;
#import <Cocoa/Cocoa.h>
#import "BSSourceView.h"
-#import "DebuggerConnection.h"
+#import "DebuggerProcessor.h"
#import "StackController.h"
-@interface DebuggerController : NSWindowController <DebuggerConnectionDelegate>
+@interface DebuggerController : NSWindowController <DebuggerProcessorDelegate>
{
- DebuggerConnection* connection;
+ DebuggerProcessor* connection;
// This is true when the |connection| has told us to clobber. We will do
// so upon receipt of the first new stack frame.
IBOutlet BSSourceView* sourceViewer;
}
-@property(readonly) DebuggerConnection* connection;
+@property(readonly) DebuggerProcessor* connection;
@property(readonly) BSSourceView* sourceViewer;
@property(readonly) NSWindow* inspector;
NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
- connection = [[DebuggerConnection alloc] initWithPort:[defaults integerForKey:@"Port"]];
+ connection = [[DebuggerProcessor alloc] initWithPort:[defaults integerForKey:@"Port"]];
connection.delegate = self;
expandedVariables = [[NSMutableSet alloc] init];
[[self window] makeKeyAndOrderFront:nil];
@class LoggingController;
-@protocol DebuggerConnectionDelegate;
+@protocol DebuggerProcessorDelegate;
// The DebuggerConnection is the communication layer between the application
// and the Xdebug engine. Clients can issue debugger commands using this class,
// primary unit that this class deals with is the StackFrame; clients should
// maintain a stack structure and the Connection will inform the delegate when
// a new frame is created or the stack should be destroyed.
-@interface DebuggerConnection : NSObject
+@interface DebuggerProcessor : NSObject
{
// The port to connect on.
NSUInteger port;
NSString* status;
// The connection's delegate.
- id <DebuggerConnectionDelegate> delegate;
+ id <DebuggerProcessorDelegate> delegate;
// The raw CFSocket on which the two streams are based. Strong.
CFSocketRef socket_;
}
@property (readonly, copy) NSString* status;
-@property (assign) id <DebuggerConnectionDelegate> delegate;
+@property (assign) id <DebuggerProcessorDelegate> delegate;
// initializer
- (id)initWithPort:(NSUInteger)aPort;
// Delegate ////////////////////////////////////////////////////////////////////
-@protocol DebuggerConnectionDelegate <NSObject>
+@protocol DebuggerProcessorDelegate <NSObject>
// Passes up errors from SocketWrapper and any other errors generated by the
// GDBpConnection.
#import <sys/socket.h>
#import <netinet/in.h>
-#import "DebuggerConnection.h"
+#import "DebuggerProcessor.h"
#import "AppDelegate.h"
#import "LoggingController.h"
// GDBpConnection (Private) ////////////////////////////////////////////////////
-@interface DebuggerConnection ()
+@interface DebuggerProcessor ()
@property (readwrite, copy) NSString* status;
@property (assign) CFSocketRef socket;
@property (assign) CFReadStreamRef readStream;
void ReadStreamCallback(CFReadStreamRef stream, CFStreamEventType eventType, void* connectionRaw)
{
- DebuggerConnection* connection = (DebuggerConnection*)connectionRaw;
+ DebuggerProcessor* connection = (DebuggerProcessor*)connectionRaw;
switch (eventType)
{
case kCFStreamEventHasBytesAvailable:
void WriteStreamCallback(CFWriteStreamRef stream, CFStreamEventType eventType, void* connectionRaw)
{
- DebuggerConnection* connection = (DebuggerConnection*)connectionRaw;
+ DebuggerProcessor* connection = (DebuggerProcessor*)connectionRaw;
switch (eventType)
{
case kCFStreamEventCanAcceptBytes:
assert(callbackType == kCFSocketAcceptCallBack);
NSLog(@"SocketAcceptCallback()");
- DebuggerConnection* connection = (DebuggerConnection*)connectionRaw;
+ DebuggerProcessor* connection = (DebuggerProcessor*)connectionRaw;
CFReadStreamRef readStream;
CFWriteStreamRef writeStream;
// GDBpConnection //////////////////////////////////////////////////////////////
-@implementation DebuggerConnection
+@implementation DebuggerProcessor
@synthesize socket = socket_;
@synthesize readStream = readStream_;
@synthesize lastReadTransaction = lastReadTransaction_;