Author: rmottola
Date: Fri Nov 25 16:51:28 2016
New Revision: 40234

URL: http://svn.gna.org/viewcvs/gnustep?rev=40234&view=rev
Log:
skip and report empty lines as PCDBEmptyRecord

Modified:
    apps/projectcenter/trunk/ChangeLog
    apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PipeDelegate.h
    apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PipeDelegate.m

Modified: apps/projectcenter/trunk/ChangeLog
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/trunk/ChangeLog?rev=40234&r1=40233&r2=40234&view=diff
==============================================================================
--- apps/projectcenter/trunk/ChangeLog  (original)
+++ apps/projectcenter/trunk/ChangeLog  Fri Nov 25 16:51:28 2016
@@ -1,3 +1,9 @@
+2016-11-25 Riccardo Mottola <r...@gnu.org>
+
+       * 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 <greg.casame...@gmail.com>
 
        * Modules/Debuggers/ProjectCenter/PCDebugger.m

Modified: 
apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PipeDelegate.h
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PipeDelegate.h?rev=40234&r1=40233&r2=40234&view=diff
==============================================================================
--- apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PipeDelegate.h     
(original)
+++ apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PipeDelegate.h     
Fri Nov 25 16:51:28 2016
@@ -38,7 +38,8 @@
   PCDBBreakpointRecord,
   PCDBFrameRecord,
   PCDBThreadRecord,
-  PCDBAdaExceptionRecord
+  PCDBAdaExceptionRecord,
+  PCDBEmptyRecord
 } PCDebuggerOutputTypes;
 
 @interface PipeDelegate : NSObject <PCDebuggerViewDelegateProtocol>

Modified: 
apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PipeDelegate.m
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PipeDelegate.m?rev=40234&r1=40233&r2=40234&view=diff
==============================================================================
--- apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PipeDelegate.m     
(original)
+++ apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PipeDelegate.m     
Fri Nov 25 16:51:28 2016
@@ -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;
 }
 


_______________________________________________
Gnustep-cvs mailing list
Gnustep-cvs@gna.org
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to