gdbserver: turn target op 'create_inferior' into a method
[deliverable/binutils-gdb.git] / gdbserver / server.cc
index 3fc026f78ebba4db17134befd3b7607e68ed04ff..73f8e185477378989dbbcbfe859ddb9f3d91ef3f 100644 (file)
@@ -3028,7 +3028,7 @@ handle_v_run (char *own_buf)
   free_vector_argv (program_args);
   program_args = new_argv;
 
-  create_inferior (program_path.get (), program_args);
+  target_create_inferior (program_path.get (), program_args);
 
   if (cs.last_status.kind == TARGET_WAITKIND_STOPPED)
     {
@@ -3784,7 +3784,7 @@ captured_main (int argc, char *argv[])
       program_args.push_back (NULL);
 
       /* Wait till we are at first instruction in program.  */
-      create_inferior (program_path.get (), program_args);
+      target_create_inferior (program_path.get (), program_args);
 
       /* We are now (hopefully) stopped at the first instruction of
         the target process.  This assumes that the target process was
@@ -4303,7 +4303,7 @@ process_serial_event (void)
          /* Wait till we are at 1st instruction in prog.  */
          if (program_path.get () != NULL)
            {
-             create_inferior (program_path.get (), program_args);
+             target_create_inferior (program_path.get (), program_args);
 
              if (cs.last_status.kind == TARGET_WAITKIND_STOPPED)
                {
This page took 0.025001 seconds and 4 git commands to generate.