Much too late, but here is a method that works during gdb
session.
gdb <executable>
then
(gdb) apropos argument
This will return lots of matches, the useful one is set args
.
set args -- Set argument list to give program being debugged when it is started.
set args arg1 arg2 ...
then
r
This will run the program, passing to main(argc, argv) the arguments and the argument count.