If you were doing it from a shell you’d do it like this:
% gdb myprogram
gdb> run params ... < input.txt
This seems to work within emacs too.
More Related Contents:
- Emacs 24 Package System Initialization Problems
- How do I control how Emacs makes backup files?
- Why does emacs create temporary symbolic links for modified files?
- Open file via SSH and Sudo with Emacs
- How to intercept a file before it opens and decide which frame
- Binding M- / M- in Emacs 23.1.1
- Emacs: Symbol’s value as variable is void
- How to change size of split screen emacs windows?
- Set 4 Space Indent in Emacs in Text Mode
- GDB print to file instead of stdout
- eval-after-load vs. mode hook
- Emacs: Tramp doesn’t work
- “Wrong type argument: commandp” error when binding a lambda to a key
- Emacs: help me understand file/buffer management
- Using tramp with EmacsW32 and cygwin, possible?
- Using Emacs to recursively find and replace in text files not already open
- How to achieve code folding effects in Emacs?
- When should Emacs #’function syntax be used?
- Emacs shell scripts – how to put initial options into the script?
- Emacs: delete whitespaces or a word
- How to keep dir-local variables when switching major modes?
- How to scroll line by line in GNU Emacs?
- Emacs behind HTTP proxy
- PATH and exec-path set, but emacs does not find executable
- How do I make this Emacs frame keep its buffer and not get resized?
- Changing Emacs Forward-Word Behaviour
- Disable warning about emacs.d in load path
- Originate edit of remote file using emacs tramp from ssh session
- How can I make emacs highlight lines that go over 80 chars?
- How do I do closures in Emacs Lisp?