Mail Archives: djgpp/1998/03/15/11:14:52
On Thu, 12 Mar 1998, Eric Gillespie wrote:
> Unfortunately when I
> tried specifying the args to the program in gdb, it thought I meant:
> hexdump cat filedir.c | hexdump -t, and pouted at me (telling me quite
> correctly it couldn't open the file -t - at least I had THAT right 8-))
Redirection of standard streams doesn't work under GDB. It is too
tricky to implement, and so it was never made happen. Sorry.
The problem is that you need to separate GDB's stdin from that of the
debuggee, and redirect only the latter. However, the DJGPP debugger
support works in a way that actually makes the debugger and the
debuggee look to DOS as a single program, which makes it very
difficult to pull such tricks.
- Raw text -