diff options
Diffstat (limited to 'gdb/fork-child.c')
-rw-r--r-- | gdb/fork-child.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/fork-child.c b/gdb/fork-child.c index 03f5e28..988154a 100644 --- a/gdb/fork-child.c +++ b/gdb/fork-child.c @@ -22,8 +22,8 @@ #include "defs.h" #include "gdb_string.h" -#include "frame.h" /* required by inferior.h */ #include "inferior.h" +#include "terminal.h" #include "target.h" #include "gdb_wait.h" #include "gdb_vfork.h" @@ -400,6 +400,8 @@ fork_inferior (char *exec_file_arg, char *allargs, char **env, /* Needed for wait_for_inferior stuff below. */ inferior_ptid = pid_to_ptid (pid); + new_tty_postfork (); + /* We have something that executes now. We'll be running through the shell at this point, but the pid shouldn't change. Targets supporting MT should fill this task's ptid with more data as soon |