Zeus
Zeus

Reputation: 1565

GDB in Emacs for Program with Command Line Arguments

Does anybody know how so start gdb in emacs when the program requires command line arguments?

I am using this command to create my program

/home/cdim/Local/gcc-4.9.2/bin/gfortran -ffree-form -g ./utests/test_gdb.f -o test_gdb

Upvotes: 2

Views: 1768

Answers (1)

Either start gdb (When M-x gdb prompts you for the debugger) with --args or just use the set args command of gdb in the *gud* emacs window (the GDB command window under Emacs).

Upvotes: 3

Related Questions