mirror of
https://github.com/gnustep/libs-ec.git
synced 2025-02-19 10:01:24 +00:00
Pass debug settings to child
This commit is contained in:
parent
3ab558d078
commit
4336887163
2 changed files with 26 additions and 0 deletions
14
Command.m
14
Command.m
|
@ -87,6 +87,8 @@ main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
NSMutableArray *args = AUTORELEASE([pArgs mutableCopy]);
|
NSMutableArray *args = AUTORELEASE([pArgs mutableCopy]);
|
||||||
NSString *path = [[NSBundle mainBundle] executablePath];
|
NSString *path = [[NSBundle mainBundle] executablePath];
|
||||||
|
NSEnumerator *dbg;
|
||||||
|
NSString *key;
|
||||||
NSAutoreleasePool *inner = nil;
|
NSAutoreleasePool *inner = nil;
|
||||||
BOOL done = NO;
|
BOOL done = NO;
|
||||||
int status = 0;
|
int status = 0;
|
||||||
|
@ -95,6 +97,18 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
[args removeObjectAtIndex: 0];
|
[args removeObjectAtIndex: 0];
|
||||||
|
|
||||||
|
/* Pass debug settings to child
|
||||||
|
* qdddd
|
||||||
|
* q
|
||||||
|
*/
|
||||||
|
dbg = [[[NSProcessInfo processInfo] debugSet] objectEnumerator];
|
||||||
|
while (nil != (key = [dbg nextObject]))
|
||||||
|
{
|
||||||
|
NSString *arg = [@"--GNU-Debug=" stringByAppendingString: key];
|
||||||
|
|
||||||
|
[args addObject: arg];
|
||||||
|
}
|
||||||
|
|
||||||
if ([pArgs containsObject: @"--Watcher"] == NO)
|
if ([pArgs containsObject: @"--Watcher"] == NO)
|
||||||
{
|
{
|
||||||
/* In the top level task ... set flags to create a subtask
|
/* In the top level task ... set flags to create a subtask
|
||||||
|
|
12
Control.m
12
Control.m
|
@ -69,6 +69,8 @@ main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
NSMutableArray *args = AUTORELEASE([pArgs mutableCopy]);
|
NSMutableArray *args = AUTORELEASE([pArgs mutableCopy]);
|
||||||
NSString *path = [[NSBundle mainBundle] executablePath];
|
NSString *path = [[NSBundle mainBundle] executablePath];
|
||||||
|
NSEnumerator *dbg;
|
||||||
|
NSString *key;
|
||||||
NSAutoreleasePool *inner = nil;
|
NSAutoreleasePool *inner = nil;
|
||||||
BOOL done = NO;
|
BOOL done = NO;
|
||||||
NSUInteger index = NSNotFound;
|
NSUInteger index = NSNotFound;
|
||||||
|
@ -77,6 +79,16 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
[args removeObjectAtIndex: 0];
|
[args removeObjectAtIndex: 0];
|
||||||
|
|
||||||
|
/* Pass debug settings to child
|
||||||
|
*/
|
||||||
|
dbg = [[[NSProcessInfo processInfo] debugSet] objectEnumerator];
|
||||||
|
while (nil != (key = [dbg nextObject]))
|
||||||
|
{
|
||||||
|
NSString *arg = [@"--GNU-Debug=" stringByAppendingString: key];
|
||||||
|
|
||||||
|
[args addObject: arg];
|
||||||
|
}
|
||||||
|
|
||||||
if ([pArgs containsObject: @"--Watcher"] == NO)
|
if ([pArgs containsObject: @"--Watcher"] == NO)
|
||||||
{
|
{
|
||||||
NSUserDefaults *defs;
|
NSUserDefaults *defs;
|
||||||
|
|
Loading…
Reference in a new issue