gdbserver: Don't add extra NULL to program args
authorMichael Weghorn <m.weghorn@posteo.de>
Mon, 25 May 2020 15:38:53 +0000 (11:38 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 25 May 2020 15:39:11 +0000 (11:39 -0400)
commitb69ca137aca2e4aa72f3cad60e0389019ab14116
tree6297336c383f19cb7e29c4934dba5ade37128790
parent8c4b5f3d987c80a1746e3f198bb060d7d7671945
gdbserver: Don't add extra NULL to program args

The vector holding the program args is passed as a parameter
to target_create_inferior, which then passes it to
stringify_argv for all platforms, where any NULL entry in
the vector is ignored, so there seems to be no reason
to actually add one after all.

(Since the intention is to replace uses of stringify_argv with
construct_inferior_arguments in a follow-up commit and that
function doesn't currently handle such NULL arguments, it
would otherwise have to be extended.)

gdbserver/ChangeLog:

* server.cc (captured_main), (handle_v_run): No longer
insert extra NULL element to args vector.

Change-Id: Ia2ef6d36814a6b11ce8b0d6e3b33248a7945e825
gdbserver/ChangeLog
gdbserver/server.cc
This page took 0.02355 seconds and 4 git commands to generate.