Current behavior is a bit confusing:
gdbserver :1234 ./prog.out arg0 arg1
gdb -ex 'target remote :1234' ./prog.out
(gdb) b main
(gdb) show args
Argument list to give program being debugged when it is started is ""
(gdb) print argc
$1 = 3
Would require sending the arguments over the protocol I expect.
And while we are at it, also make args persist for --multi across runs: currently it is only used for the first one. See also: https://sourceware.org/bugzilla/show_bug.cgi?id=21981
*** Bug 21979 has been marked as a duplicate of this bug. ***
Sorry, the site or my internet was a bit shaky.