Whe loading a program with gdb, how do you have gdb automatically start the program and run it without waiting?
1 Answer
Use the -ex command line option and provide the run command.
gdb -ex=r --args executable --with-options-for-the-executable
Use the -ex command line option and provide the run command.
gdb -ex=r --args executable --with-options-for-the-executable