I need to debug a program that feeds on the output of another program. Hence, writing the output of the 'feeder' into a file, and piping that to the 'reader' doesn't work.
Normal run:
# feeder | ./reader
This is NOT an option here:
# feeder > data
# gdb ./reader
(gdb) run < data