gdb version ivar and accessors. Plus, do not start quiet or version is not shown

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@39748 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2016-05-12 23:29:47 +00:00
parent 486dfc7197
commit 2a05234abb
2 changed files with 15 additions and 1 deletions

View file

@ -35,6 +35,7 @@
NSString *executablePath;
NSString *debuggerPath;
int subProcessId;
float gdbVersion;
}
- (void) setStatus: (NSString *) status;
@ -44,5 +45,7 @@
- (void) interrupt;
- (int) subProcessId;
- (void) setSubProcessId:(int)pid;
- (float) gdbVersion;
- (void) setGdbVersion:(float)ver;
@end

View file

@ -140,6 +140,7 @@ static NSImage *downImage = nil;
[viewDelegate release];
subProcessId = 0;
gdbVersion = 0.0;
}
return self;
}
@ -163,7 +164,7 @@ static NSImage *downImage = nil;
{
[debuggerView runProgram: debuggerPath
inCurrentDirectory: [executablePath stringByDeletingLastPathComponent]
withArguments: [[NSArray alloc] initWithObjects: @"-q", @"--interpreter=mi", @"-f", executablePath, nil]
withArguments: [[NSArray alloc] initWithObjects: @"--interpreter=mi", @"-f", executablePath, nil]
logStandardError: YES];
}
@ -220,6 +221,16 @@ static NSImage *downImage = nil;
subProcessId = pid;
}
- (float) gdbVersion
{
return gdbVersion;
}
- (void) setGdbVersion:(float)ver
{
gdbVersion = ver;
}
// kill process
- (void) interrupt
{