How to load program reading stdin and taking parameters in gdb?

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.

Leave a Comment