environ = env;
/* If we decided above to start up with a shell, we exec the
- shell, "-c" says to interpret the next arg as a shell command
- to execute, and this command is "exec <target-program>
- <args>". "-f" means "fast startup" to the c-shell, which
- means don't do .cshrc file. Doing .cshrc may cause fork/exec
- events which will confuse debugger start-up code. */
+ shell, "-c" says to interpret the next arg as a shell command
+ to execute, and this command is "exec <target-program>
+ <args>". */
if (shell)
{
execlp (shell_file, shell_file, "-c", shell_command, (char *) 0);
init_wait_for_inferior ();
- if (STARTUP_WITH_SHELL)
- inferior_ignoring_startup_exec_events = ntraps;
- else
- inferior_ignoring_startup_exec_events = 0;
inferior_ignoring_leading_exec_events =
target_reported_exec_events_per_exec_call () - 1;