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
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).
Tools then Debugger (GDB). Let's start without arguments. Without arguments my program displays help information. I click on the run button and nothing happens. I get Undefined command: "-exec-run". Try "help".gud-test_meidum.xgdb test_meidum.x, then get the window, I type run and I get Undefined command: "-exec-run". Try "help".-i=mi. Putting it before the executable gets me to gdb and I can run the program using run in the window.