Reputation: 18600
Whe loading a program with gdb, how do you have gdb automatically start the program and run it without waiting?
Upvotes: 2
Views: 206
Reputation: 18600
Use the -ex command line option and provide the run command.
gdb -ex=r --args executable --with-options-for-the-executable
Upvotes: 4