]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/exec.c
gdb: remove push_target free functions
[thirdparty/binutils-gdb.git] / gdb / exec.c
index bcc54bd966fe15d6a1e028f5e3fbc241a94f0aed..b737bcf6e0f3c25462233b39cf50be0d24e4b5aa 100644 (file)
@@ -616,7 +616,7 @@ program_space::add_target_sections (void *owner,
            continue;
 
          switch_to_inferior_no_thread (inf);
-         push_target (&exec_ops);
+         inf->push_target (&exec_ops);
        }
     }
 }
@@ -682,7 +682,7 @@ void
 exec_on_vfork ()
 {
   if (!current_program_space->target_sections ().empty ())
-    push_target (&exec_ops);
+    current_inferior ()->push_target (&exec_ops);
 }
 
 \f