Author: rmottola
Date: Sun May 15 10:28:57 2016
New Revision: 39767
URL: http://svn.gna.org/viewcvs/gnustep?rev=39767&view=rev
Log:
For GDB < v. 7 (on win), attempt to grab process id from Windows thread
information.
Modified:
apps/projectcenter/trunk/ChangeLog
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=39767&r1=39766&r2=39767&view=diff
==============================================================================
--- apps/projectcenter/trunk/ChangeLog (original)
+++ apps/projectcenter/trunk/ChangeLog Sun May 15 10:28:57 2016
@@ -2,6 +2,9 @@
* Modules/Debuggers/ProjectCenter/PCDebugger.m
On windows kill with DebugBreakProcess() and not tskill. Available only
on WinXP or higher.
+
+ * Modules/Debuggers/ProjectCenter/PipeDelegate.m
+ For GDB < v. 7 (on win), attempt to grab process id from Windows thread
information.
2016-05-05 15:43-EDT Gregory John Casamento <[email protected]>
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=39767&r1=39766&r2=39767&view=diff
==============================================================================
--- apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PipeDelegate.m
(original)
+++ apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PipeDelegate.m
Sun May 15 10:28:57 2016
@@ -232,6 +232,21 @@
{
NSLog(@"GDB version string: %f", v);
[debugger setGdbVersion:v];
+ }
+ }
+ }
+ if (([debugger gdbVersion] < 7) && [debugger subProcessId] == 0)
+ {
+ NSString *str1;
+ // we attempt to parse: [New thread 6800.0x18ec]
+ [stringScanner scanString: @"\"[New thread" intoString: &str1];
+ if (str1 != nil)
+ {
+ int v;
+ if([stringScanner scanInt:&v])
+ {
+ NSLog(@"sub process id: %d", v);
+ [debugger setSubProcessId:v];
}
}
}
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs