Remove the model-updating-controller register variable code
[macgdbp.git] / Source / GDBpConnection.h
1 /*
2 * MacGDBp
3 * Copyright (c) 2007 - 2008, Blue Static <http://www.bluestatic.org>
4 *
5 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
6 * General Public License as published by the Free Software Foundation; either version 2 of the
7 * License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
10 * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License along with this program; if not,
14 * write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
15 */
16
17 #import <Cocoa/Cocoa.h>
18 #import "DebuggerController.h"
19 #import "SocketWrapper.h"
20 #import "Breakpoint.h"
21 #import "StackFrame.h"
22
23 extern NSString *kErrorOccurredNotif;
24
25 @interface GDBpConnection : NSObject
26 {
27 int port;
28 NSString *session;
29 BOOL connected;
30
31 /**
32 * Human-readable status of the connection
33 */
34 NSString *status;
35
36 DebuggerController *windowController;
37
38 SocketWrapper *socket;
39 }
40
41 @property(readonly, copy) NSString *status;
42 @property(readonly) SocketWrapper *socket;
43 @property(readonly) DebuggerController *windowController;
44
45 // initializer
46 - (id)initWithWindowController:(DebuggerController *)wc port:(int)aPort session:(NSString *)aSession;
47
48 // getter
49 - (int)port;
50 - (NSString *)session;
51 - (NSString *)remoteHost;
52 - (BOOL)isConnected;
53
54 // communication
55 - (void)reconnect;
56 - (void)run;
57 - (StackFrame *)stepIn;
58 - (StackFrame *)stepOut;
59 - (StackFrame *)stepOver;
60 - (void)addBreakpoint:(Breakpoint *)bp;
61 - (void)removeBreakpoint:(Breakpoint *)bp;
62
63 // helpers
64 - (NSArray *)getProperty:(NSString *)property;
65
66 @end