mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 02:24:46 +08:00
2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
* win32-nat.c (child_create_inferior): Fix create flags setting bug.
This commit is contained in:
parent
2cb30cd57f
commit
eeb25b8ac9
@ -1,3 +1,7 @@
|
||||
2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
|
||||
|
||||
* win32-nat.c (child_create_inferior): Fix create flags setting bug.
|
||||
|
||||
2002-02-21 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* win32-nat.c (register_loaded_dll): Just use raw name when we can't
|
||||
|
@ -1468,14 +1468,6 @@ child_create_inferior (char *exec_file, char *allargs, char **env)
|
||||
memset (&si, 0, sizeof (si));
|
||||
si.cb = sizeof (si);
|
||||
|
||||
flags = 0;
|
||||
|
||||
if (new_group)
|
||||
flags |= CREATE_NEW_PROCESS_GROUP;
|
||||
|
||||
if (new_console)
|
||||
flags |= CREATE_NEW_CONSOLE;
|
||||
|
||||
if (!useshell || !shell[0])
|
||||
{
|
||||
flags = DEBUG_ONLY_THIS_PROCESS;
|
||||
@ -1484,13 +1476,20 @@ child_create_inferior (char *exec_file, char *allargs, char **env)
|
||||
}
|
||||
else
|
||||
{
|
||||
char *newallargs = alloca (sizeof (" -c 'exec '") + strlen (exec_file) + strlen (allargs) + 2);
|
||||
char *newallargs = alloca (sizeof (" -c 'exec '") + strlen (exec_file)
|
||||
+ strlen (allargs) + 2);
|
||||
sprintf (newallargs, " -c 'exec %s %s'", exec_file, allargs);
|
||||
allargs = newallargs;
|
||||
toexec = shell;
|
||||
flags = DEBUG_PROCESS;
|
||||
}
|
||||
|
||||
if (new_group)
|
||||
flags |= CREATE_NEW_PROCESS_GROUP;
|
||||
|
||||
if (new_console)
|
||||
flags |= CREATE_NEW_CONSOLE;
|
||||
|
||||
args = alloca (strlen (toexec) + strlen (allargs) + 2);
|
||||
strcpy (args, toexec);
|
||||
strcat (args, " ");
|
||||
|
@ -1468,14 +1468,6 @@ child_create_inferior (char *exec_file, char *allargs, char **env)
|
||||
memset (&si, 0, sizeof (si));
|
||||
si.cb = sizeof (si);
|
||||
|
||||
flags = 0;
|
||||
|
||||
if (new_group)
|
||||
flags |= CREATE_NEW_PROCESS_GROUP;
|
||||
|
||||
if (new_console)
|
||||
flags |= CREATE_NEW_CONSOLE;
|
||||
|
||||
if (!useshell || !shell[0])
|
||||
{
|
||||
flags = DEBUG_ONLY_THIS_PROCESS;
|
||||
@ -1484,13 +1476,20 @@ child_create_inferior (char *exec_file, char *allargs, char **env)
|
||||
}
|
||||
else
|
||||
{
|
||||
char *newallargs = alloca (sizeof (" -c 'exec '") + strlen (exec_file) + strlen (allargs) + 2);
|
||||
char *newallargs = alloca (sizeof (" -c 'exec '") + strlen (exec_file)
|
||||
+ strlen (allargs) + 2);
|
||||
sprintf (newallargs, " -c 'exec %s %s'", exec_file, allargs);
|
||||
allargs = newallargs;
|
||||
toexec = shell;
|
||||
flags = DEBUG_PROCESS;
|
||||
}
|
||||
|
||||
if (new_group)
|
||||
flags |= CREATE_NEW_PROCESS_GROUP;
|
||||
|
||||
if (new_console)
|
||||
flags |= CREATE_NEW_CONSOLE;
|
||||
|
||||
args = alloca (strlen (toexec) + strlen (allargs) + 2);
|
||||
strcpy (args, toexec);
|
||||
strcat (args, " ");
|
||||
|
Loading…
Reference in New Issue
Block a user