diff --git a/Modules/Debuggers/ProjectCenter/PCDebugger.h b/Modules/Debuggers/ProjectCenter/PCDebugger.h index bb2fafe..c809796 100644 --- a/Modules/Debuggers/ProjectCenter/PCDebugger.h +++ b/Modules/Debuggers/ProjectCenter/PCDebugger.h @@ -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 diff --git a/Modules/Debuggers/ProjectCenter/PCDebugger.m b/Modules/Debuggers/ProjectCenter/PCDebugger.m index a6c2485..1f148f5 100644 --- a/Modules/Debuggers/ProjectCenter/PCDebugger.m +++ b/Modules/Debuggers/ProjectCenter/PCDebugger.m @@ -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 {