mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-18 16:41:35 +00:00
* Modules/Debuggers/ProjectCenter/PCDebugger.h
* Modules/Debuggers/ProjectCenter/PCDebugger.m * Modules/Debuggers/ProjectCenter/PCDebuggerView.m: Add code to write to the file desicriptor. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@27410 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3ea83315ba
commit
dad9dde30e
4 changed files with 21 additions and 4 deletions
|
@ -1,3 +1,10 @@
|
|||
2008-12-22 19:56-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Modules/Debuggers/ProjectCenter/PCDebugger.h
|
||||
* Modules/Debuggers/ProjectCenter/PCDebugger.m
|
||||
* Modules/Debuggers/ProjectCenter/PCDebuggerView.m: Add code
|
||||
to write to the file desicriptor.
|
||||
|
||||
2008-12-22 18:36-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* English.lproj/ProjectCenter.gorm: Minor changes.
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
NSFileHandle *errorReadHandle;
|
||||
BOOL _isLogging;
|
||||
BOOL _isErrorLogging;
|
||||
FILE *stdInStream;
|
||||
}
|
||||
|
||||
- (void)putChar:(unichar)ch;
|
||||
|
|
|
@ -169,9 +169,15 @@
|
|||
|
||||
- (void) startDebugger
|
||||
{
|
||||
int descriptor = 0;
|
||||
|
||||
standardInput = [NSPipe pipe];
|
||||
standardOutput = [NSPipe pipe];
|
||||
standardError = [NSPipe pipe];
|
||||
|
||||
descriptor = [[standardInput fileHandleForWriting] fileDescriptor];
|
||||
stdInStream = fdopen(descriptor, "w");
|
||||
|
||||
readHandle = [standardOutput fileHandleForReading];
|
||||
[readHandle waitForDataInBackgroundAndNotify];
|
||||
|
||||
|
@ -207,9 +213,11 @@
|
|||
[debuggerTask setLaunchPath: debuggerPath];
|
||||
[debuggerTask setStandardOutput: standardOutput];
|
||||
[debuggerTask setStandardError: standardError];
|
||||
|
||||
[debuggerTask setStandardInput: standardInput];
|
||||
|
||||
NS_DURING
|
||||
{
|
||||
[self logString: @"\n=== Debugger Started ===\n" error: NO newLine:YES];
|
||||
[debuggerTask launch];
|
||||
}
|
||||
NS_HANDLER
|
||||
|
@ -228,7 +236,8 @@
|
|||
|
||||
- (void) debuggerDidTerminate: (NSNotification *)notif
|
||||
{
|
||||
[self logString: @"=== Debugger Terminated ===" error: NO newLine:YES];
|
||||
NSLog(@"Debugger Terminated...");
|
||||
[self logString: @"\n=== Debugger Terminated ===\n" error: NO newLine:YES];
|
||||
}
|
||||
|
||||
- (void) awakeFromNib
|
||||
|
@ -268,6 +277,6 @@
|
|||
|
||||
- (void)putChar:(unichar)ch
|
||||
{
|
||||
// fputc(ch, stdInStream);
|
||||
fputc(ch, stdInStream);
|
||||
}
|
||||
@end
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
NSLog(@"character: %c", c);
|
||||
[debugger putChar:c];
|
||||
}
|
||||
return [super performKeyEquivalent:theEvent];
|
||||
return YES; // [super performKeyEquivalent:theEvent];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue