aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/fork-child.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdbserver/fork-child.c')
-rw-r--r--gdb/gdbserver/fork-child.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/gdbserver/fork-child.c b/gdb/gdbserver/fork-child.c
index 0a53a25..7a71ec0 100644
--- a/gdb/gdbserver/fork-child.c
+++ b/gdb/gdbserver/fork-child.c
@@ -107,7 +107,8 @@ post_fork_inferior (int pid, const char *program)
atexit (restore_old_foreground_pgrp);
#endif
- startup_inferior (pid, START_INFERIOR_TRAPS_EXPECTED,
+ startup_inferior (the_target, pid,
+ START_INFERIOR_TRAPS_EXPECTED,
&cs.last_status, &cs.last_ptid);
current_thread->last_resume_kind = resume_stop;
current_thread->last_status = cs.last_status;