diff options
Diffstat (limited to 'gdb/inf-child.c')
-rw-r--r-- | gdb/inf-child.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/inf-child.c b/gdb/inf-child.c index b8bc2e2..0e68a40 100644 --- a/gdb/inf-child.c +++ b/gdb/inf-child.c @@ -166,7 +166,7 @@ inf_child_open_target (const char *arg, int from_tty) gdb_assert (dynamic_cast<inf_child_target *> (target) != NULL); target_preopen (from_tty); - push_target (target); + current_inferior ()->push_target (target); inf_child_explicitly_opened = 1; if (from_tty) printf_filtered ("Done. Use the \"run\" command to start a process.\n"); |