how to start a program with arguments using gdb code example Example: gdb run program with args gdb --args executablename arg1 arg2 arg3