mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-19 01:51:09 +00:00
move debugger version into the wrapper
This commit is contained in:
parent
7c741d63e6
commit
5beb3dfe39
4 changed files with 16 additions and 16 deletions
|
@ -59,8 +59,12 @@ typedef enum PCDebuggerOutputType_enum {
|
||||||
NSFont *font;
|
NSFont *font;
|
||||||
|
|
||||||
BOOL debuggerStarted;
|
BOOL debuggerStarted;
|
||||||
|
float debuggerVersion;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (float) debuggerVersion;
|
||||||
|
- (void) setDebuggerVersion:(float)ver;
|
||||||
|
|
||||||
- (void)logStdOut:(NSNotification *)aNotif;
|
- (void)logStdOut:(NSNotification *)aNotif;
|
||||||
|
|
||||||
- (void)logErrOut:(NSNotification *)aNotif;
|
- (void)logErrOut:(NSNotification *)aNotif;
|
||||||
|
|
|
@ -56,6 +56,7 @@
|
||||||
promptColor = [[NSColor purpleColor] retain];
|
promptColor = [[NSColor purpleColor] retain];
|
||||||
|
|
||||||
debuggerStarted = NO;
|
debuggerStarted = NO;
|
||||||
|
debuggerVersion = 0.0;
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -121,6 +122,16 @@
|
||||||
return errorColor;
|
return errorColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (float) debuggerVersion
|
||||||
|
{
|
||||||
|
return debuggerVersion;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void) setDebuggerVersion:(float)ver
|
||||||
|
{
|
||||||
|
debuggerVersion = ver;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Log string to the view.
|
* Log string to the view.
|
||||||
*/
|
*/
|
||||||
|
@ -347,7 +358,7 @@
|
||||||
[stringScanner scanString: @"~" intoString: &prefix];
|
[stringScanner scanString: @"~" intoString: &prefix];
|
||||||
if(prefix != nil)
|
if(prefix != nil)
|
||||||
{
|
{
|
||||||
if ([debugger debuggerVersion] == 0.0)
|
if (debuggerVersion == 0.0)
|
||||||
{
|
{
|
||||||
NSString *str1 = nil;
|
NSString *str1 = nil;
|
||||||
NSString *str2 = nil;
|
NSString *str2 = nil;
|
||||||
|
|
|
@ -45,7 +45,6 @@ extern NSString *PCDBDebuggerStartedNotification;
|
||||||
NSString *executablePath;
|
NSString *executablePath;
|
||||||
NSString *debuggerPath;
|
NSString *debuggerPath;
|
||||||
int subProcessId;
|
int subProcessId;
|
||||||
float debuggerVersion;
|
|
||||||
NSDictionary *lastInfoParsed;
|
NSDictionary *lastInfoParsed;
|
||||||
NSString *lastFileNameParsed;
|
NSString *lastFileNameParsed;
|
||||||
NSUInteger lastLineNumberParsed;
|
NSUInteger lastLineNumberParsed;
|
||||||
|
@ -59,8 +58,6 @@ extern NSString *PCDBDebuggerStartedNotification;
|
||||||
- (void) interrupt;
|
- (void) interrupt;
|
||||||
- (int) subProcessId;
|
- (int) subProcessId;
|
||||||
- (void) setSubProcessId:(int)pid;
|
- (void) setSubProcessId:(int)pid;
|
||||||
- (float) debuggerVersion;
|
|
||||||
- (void) setDebuggerVersion:(float)ver;
|
|
||||||
- (NSDictionary *)lastInfoParsed;
|
- (NSDictionary *)lastInfoParsed;
|
||||||
- (void)setSetInfoParsed: (NSDictionary *)dict;
|
- (void)setSetInfoParsed: (NSDictionary *)dict;
|
||||||
- (NSString *)lastFileNameParsed;
|
- (NSString *)lastFileNameParsed;
|
||||||
|
|
|
@ -156,8 +156,6 @@ NSString *PCDBDebuggerStartedNotification = @"PCDBDebuggerStartedNotification";
|
||||||
[debuggerView setFont: [self consoleFont]];
|
[debuggerView setFont: [self consoleFont]];
|
||||||
|
|
||||||
subProcessId = 0;
|
subProcessId = 0;
|
||||||
debuggerVersion = 0.0;
|
|
||||||
|
|
||||||
lastInfoParsed = nil;
|
lastInfoParsed = nil;
|
||||||
lastFileNameParsed = nil;
|
lastFileNameParsed = nil;
|
||||||
lastLineNumberParsed = NSNotFound;
|
lastLineNumberParsed = NSNotFound;
|
||||||
|
@ -281,16 +279,6 @@ NSString *PCDBDebuggerStartedNotification = @"PCDBDebuggerStartedNotification";
|
||||||
subProcessId = pid;
|
subProcessId = pid;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (float) debuggerVersion
|
|
||||||
{
|
|
||||||
return debuggerVersion;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void) setDebuggerVersion:(float)ver
|
|
||||||
{
|
|
||||||
debuggerVersion = ver;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (NSDictionary *)lastInfoParsed
|
- (NSDictionary *)lastInfoParsed
|
||||||
{
|
{
|
||||||
return lastInfoParsed;
|
return lastInfoParsed;
|
||||||
|
|
Loading…
Reference in a new issue