diff options
-rw-r--r-- | gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdbserver/server.cc | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/gdbserver/ChangeLog b/gdbserver/ChangeLog index 0bf2bb9..b4e6fa6 100644 --- a/gdbserver/ChangeLog +++ b/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2020-05-25 Michael Weghorn <m.weghorn@posteo.de> + + * server.cc (captured_main), (handle_v_run): No longer + insert extra NULL element to args vector. + 2020-05-23 Pedro Alves <palves@redhat.com> * gdb-safe-ctype.h: New. diff --git a/gdbserver/server.cc b/gdbserver/server.cc index 0672f9b..27d0931 100644 --- a/gdbserver/server.cc +++ b/gdbserver/server.cc @@ -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); |