From: August <fusionfive@sp...> - 2004-06-09 02:58:58
I cannot get gdb to work with input redirection. I use GDB 5.2.1 with MinGW
3.1.0-1 on Windows XP.
First I compile the following program with `gcc -g -o test test.c'
c = getc(stdin);
Then I run the debugger from Emacs with `gdb test' and issue `break main'
and `run < test.c'. A DOS window appears so I "Alt-Tab" to Emacs and issue
`step' from gdb. Nothing happens until I enter a character in the DOS
window, so apparently the input redirection does not work (running the
program `test.exe' without the debuger works fine). Am I doing something
wrong here or is this a bug?