diff options
author | Daniel Jacobowitz <dan@debian.org> | 2008-01-28 20:21:03 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2008-01-28 20:21:03 +0000 |
commit | c8695fe0d5876c111b88a2ba06377c6245d0cfc0 (patch) | |
tree | 1baef26cef8fdae73a3d5da6de8f9d89744608ce /gdb/fork-child.c | |
parent | 720af5017a7c7b82a6b91ae917cd539f8c597095 (diff) | |
download | gdb-c8695fe0d5876c111b88a2ba06377c6245d0cfc0.tar.gz |
* fork-child.c (SHELL_FILE): Remove #ifndef.
(fork_inferior): Remove SHELL_COMMAND_CONCAT.
* gdbint.texinfo (Native Conditionals): Remove
SHELL_COMMAND_CONCAT and SHELL_FILE.
Diffstat (limited to 'gdb/fork-child.c')
-rw-r--r-- | gdb/fork-child.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/gdb/fork-child.c b/gdb/fork-child.c index 71bb28e4f80..9f0588e58ff 100644 --- a/gdb/fork-child.c +++ b/gdb/fork-child.c @@ -36,9 +36,7 @@ #include <signal.h> /* This just gets used as a default if we can't find SHELL. */ -#ifndef SHELL_FILE #define SHELL_FILE "/bin/sh" -#endif extern char **environ; @@ -162,15 +160,8 @@ fork_inferior (char *exec_file_arg, char *allargs, char **env, fact that it may expand when quoted; it is a worst-case number based on every character being '. */ len = 5 + 4 * strlen (exec_file) + 1 + strlen (allargs) + 1 + /*slop */ 12; - /* If desired, concat something onto the front of ALLARGS. - SHELL_COMMAND is the result. */ -#ifdef SHELL_COMMAND_CONCAT - shell_command = (char *) alloca (strlen (SHELL_COMMAND_CONCAT) + len); - strcpy (shell_command, SHELL_COMMAND_CONCAT); -#else shell_command = (char *) alloca (len); shell_command[0] = '\0'; -#endif if (!shell) { |