mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-19 01:51:09 +00:00
Partial parsing of result records.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@39725 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
21907bf78c
commit
7bb6b0a2cc
3 changed files with 47 additions and 9 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2016-05-05 13:13-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||||
|
|
||||||
|
* Modules/Debuggers/ProjectCenter/PCDebugger.m
|
||||||
|
* Modules/Debuggers/ProjectCenter/PipeDelegate.m: Partial parsing
|
||||||
|
of result records to yield correct status in debuggerView.
|
||||||
|
|
||||||
2016-05-05 11:23-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
2016-05-05 11:23-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||||
|
|
||||||
* Modules/Debuggers/ProjectCenter/PipeDelegate.m: Handle more
|
* Modules/Debuggers/ProjectCenter/PipeDelegate.m: Handle more
|
||||||
|
|
|
@ -244,7 +244,7 @@ static NSImage *downImage = nil;
|
||||||
// action methods for toolbar...
|
// action methods for toolbar...
|
||||||
- (void) go: (id) sender
|
- (void) go: (id) sender
|
||||||
{
|
{
|
||||||
[self setStatus: @"Running..."];
|
// [self setStatus: @"Running..."];
|
||||||
[debuggerView putString: @"run\n"];
|
[debuggerView putString: @"run\n"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -256,45 +256,45 @@ static NSImage *downImage = nil;
|
||||||
|
|
||||||
- (void) continue: (id) sender
|
- (void) continue: (id) sender
|
||||||
{
|
{
|
||||||
[self setStatus: @"Continue..."];
|
// [self setStatus: @"Continue..."];
|
||||||
[debuggerView putString: @"continue\n"];
|
[debuggerView putString: @"continue\n"];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) restart: (id) sender
|
- (void) restart: (id) sender
|
||||||
{
|
{
|
||||||
[self setStatus: @"Restarting..."];
|
// [self setStatus: @"Restarting..."];
|
||||||
[self interrupt];
|
[self interrupt];
|
||||||
[debuggerView putString: @"run\n"];
|
[debuggerView putString: @"run\n"];
|
||||||
[self setStatus: @"Running..."];
|
// [self setStatus: @"Running..."];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) next: (id) sender
|
- (void) next: (id) sender
|
||||||
{
|
{
|
||||||
[self setStatus: @"Going to next line."];
|
// [self setStatus: @"Going to next line."];
|
||||||
[debuggerView putString: @"next\n"];
|
[debuggerView putString: @"next\n"];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) stepInto: (id) sender
|
- (void) stepInto: (id) sender
|
||||||
{
|
{
|
||||||
[self setStatus: @"Stepping into method."];
|
// [self setStatus: @"Stepping into method."];
|
||||||
[debuggerView putString: @"step\n"];
|
[debuggerView putString: @"step\n"];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) stepOut: (id) sender
|
- (void) stepOut: (id) sender
|
||||||
{
|
{
|
||||||
[self setStatus: @"Finishing method."];
|
// [self setStatus: @"Finishing method."];
|
||||||
[debuggerView putString: @"finish\n"];
|
[debuggerView putString: @"finish\n"];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) up: (id) sender
|
- (void) up: (id) sender
|
||||||
{
|
{
|
||||||
[self setStatus: @"Up to calling method."];
|
// [self setStatus: @"Up to calling method."];
|
||||||
[debuggerView putString: @"up\n"];
|
[debuggerView putString: @"up\n"];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) down: (id) sender
|
- (void) down: (id) sender
|
||||||
{
|
{
|
||||||
[self setStatus: @"Down to called method."];
|
// [self setStatus: @"Down to called method."];
|
||||||
[debuggerView putString: @"down\n"];
|
[debuggerView putString: @"down\n"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -231,6 +231,38 @@
|
||||||
[stringScanner scanString: @"^" intoString: &prefix];
|
[stringScanner scanString: @"^" intoString: &prefix];
|
||||||
if(prefix != nil)
|
if(prefix != nil)
|
||||||
{
|
{
|
||||||
|
NSString *result = nil;
|
||||||
|
|
||||||
|
[stringScanner scanString: @"done" intoString: &result];
|
||||||
|
if(result != nil)
|
||||||
|
{
|
||||||
|
[debugger setStatus: @"Done"];
|
||||||
|
return PCDBResultRecord;
|
||||||
|
}
|
||||||
|
[stringScanner scanString: @"running" intoString: &result];
|
||||||
|
if(result != nil)
|
||||||
|
{
|
||||||
|
[debugger setStatus: @"Running"];
|
||||||
|
return PCDBResultRecord;
|
||||||
|
}
|
||||||
|
[stringScanner scanString: @"connected" intoString: &result];
|
||||||
|
if(result != nil)
|
||||||
|
{
|
||||||
|
[debugger setStatus: @"Connected"];
|
||||||
|
return PCDBResultRecord;
|
||||||
|
}
|
||||||
|
[stringScanner scanString: @"error" intoString: &result];
|
||||||
|
if(result != nil)
|
||||||
|
{
|
||||||
|
[debugger setStatus: @"Error"];
|
||||||
|
return PCDBResultRecord;
|
||||||
|
}
|
||||||
|
[stringScanner scanString: @"exit" intoString: &result];
|
||||||
|
if(result != nil)
|
||||||
|
{
|
||||||
|
[debugger setStatus: @"Exit"];
|
||||||
|
return PCDBResultRecord;
|
||||||
|
}
|
||||||
return PCDBResultRecord;
|
return PCDBResultRecord;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue