diff options
Diffstat (limited to 'gdbserver/fork-child.cc')
-rw-r--r-- | gdbserver/fork-child.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdbserver/fork-child.cc b/gdbserver/fork-child.cc index 96dd4d0..7ea66f2 100644 --- a/gdbserver/fork-child.cc +++ b/gdbserver/fork-child.cc @@ -18,6 +18,7 @@ #include "server.h" #include "gdbsupport/job-control.h" +#include "gdbsupport/scoped_restore.h" #include "nat/fork-inferior.h" #ifdef HAVE_SIGNAL_H #include <signal.h> @@ -103,6 +104,10 @@ post_fork_inferior (int pid, const char *program) atexit (restore_old_foreground_pgrp); #endif + process_info *proc = find_process_pid (pid); + scoped_restore save_starting_up + = make_scoped_restore (&proc->starting_up, true); + startup_inferior (the_target, pid, START_INFERIOR_TRAPS_EXPECTED, &cs.last_status, &cs.last_ptid); |