gdbserver: Don't add extra NULL to program args
[deliverable/binutils-gdb.git] / gdbserver / server.cc
index 0672f9bc4d10cfccf167c3a0d2d0a1e41302caa0..27d0931f793e32d871f6785cdbb30d07baf4df7c 100644 (file)
@@ -3015,7 +3015,6 @@ handle_v_run (char *own_buf)
       if (*next_p)
        next_p++;
     }
-  new_argv.push_back (NULL);
 
   if (new_program_name == NULL)
     {
@@ -3815,7 +3814,6 @@ captured_main (int argc, char *argv[])
       program_path.set (make_unique_xstrdup (next_arg[0]));
       for (i = 1; i < n; i++)
        program_args.push_back (xstrdup (next_arg[i]));
-      program_args.push_back (NULL);
 
       /* Wait till we are at first instruction in program.  */
       target_create_inferior (program_path.get (), program_args);
This page took 0.024461 seconds and 4 git commands to generate.