aboutsummaryrefslogtreecommitdiff
path: root/gdb/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/exec.c')
-rw-r--r--gdb/exec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/exec.c b/gdb/exec.c
index a28336b..6f936c9 100644
--- a/gdb/exec.c
+++ b/gdb/exec.c
@@ -678,10 +678,10 @@ program_space::remove_target_sections (void *owner)
/* See exec.h. */
void
-exec_on_vfork ()
+exec_on_vfork (inferior *vfork_child)
{
- if (!current_program_space->target_sections ().empty ())
- current_inferior ()->push_target (&exec_ops);
+ if (!vfork_child->pspace->target_sections ().empty ())
+ vfork_child->push_target (&exec_ops);
}