I'm trying to get gdb to run programs with input redirection to stdin. For example, without gdb I would run a program like this:

prog < input.txt

Now in gdb, the usual way to do this is run < input.txt. However, it doesn't work for me and when doing this nothing gets redirected into stdin.

I'm using Windows with MinGW. What could be the problem?

Edit
Report