diff --git a/ChangeLog b/ChangeLog index 7b057e2..2d1225d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2016-11-25 Riccardo Mottola + + * Modules/Debuggers/ProjectCenter/PipeDelegate.h + * Modules/Debuggers/ProjectCenter/PipeDelegate.m + skip and report empty lines as PCDBEmptyRecord + 2016-11-19 11:22-EST Gregory John Casamento * Modules/Debuggers/ProjectCenter/PCDebugger.m diff --git a/Modules/Debuggers/ProjectCenter/PipeDelegate.h b/Modules/Debuggers/ProjectCenter/PipeDelegate.h index 40e62e4..fd55470 100644 --- a/Modules/Debuggers/ProjectCenter/PipeDelegate.h +++ b/Modules/Debuggers/ProjectCenter/PipeDelegate.h @@ -38,7 +38,8 @@ typedef enum PCDebuggerOutputType_enum { PCDBBreakpointRecord, PCDBFrameRecord, PCDBThreadRecord, - PCDBAdaExceptionRecord + PCDBAdaExceptionRecord, + PCDBEmptyRecord } PCDebuggerOutputTypes; @interface PipeDelegate : NSObject diff --git a/Modules/Debuggers/ProjectCenter/PipeDelegate.m b/Modules/Debuggers/ProjectCenter/PipeDelegate.m index 83d973c..c613b1a 100644 --- a/Modules/Debuggers/ProjectCenter/PipeDelegate.m +++ b/Modules/Debuggers/ProjectCenter/PipeDelegate.m @@ -148,9 +148,15 @@ - (PCDebuggerOutputTypes) parseStringLine: (NSString *)stringInput { BOOL found = NO; - NSScanner *stringScanner = [NSScanner scannerWithString: stringInput]; + NSScanner *stringScanner; NSString *prefix = NULL; + if ([stringInput length] == 0) + return PCDBEmptyRecord; + + stringScanner = [NSScanner scannerWithString: stringInput]; + + //NSLog(@"parsing: |%@|", stringInput); [stringScanner scanString: @"(gdb)" intoString: &prefix]; if(prefix != nil) { @@ -310,7 +316,7 @@ } return PCDBResultRecord; } - + NSLog(@"No match found parse: |%@|", stringInput); return PCDBNotFoundRecord; }