* 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:
Gregory John Casamento 2008-12-23 00:49:57 +00:00
parent 3ea83315ba
commit dad9dde30e
4 changed files with 21 additions and 4 deletions

View file

@ -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.

View file

@ -21,6 +21,7 @@
NSFileHandle *errorReadHandle;
BOOL _isLogging;
BOOL _isErrorLogging;
FILE *stdInStream;
}
- (void)putChar:(unichar)ch;

View file

@ -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

View file

@ -25,7 +25,7 @@
NSLog(@"character: %c", c);
[debugger putChar:c];
}
return [super performKeyEquivalent:theEvent];
return YES; // [super performKeyEquivalent:theEvent];
}
@end