Vincent Scheib
Vincent Scheib

Reputation: 18600

Command line option to run program under gdb after it loads?

Whe loading a program with gdb, how do you have gdb automatically start the program and run it without waiting?

Upvotes: 2

Views: 206

Answers (1)

Vincent Scheib
Vincent Scheib

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

Related Questions