Date: Sun, 15 Mar 1998 15:32:38 +0200 (IST) From: Eli Zaretskii To: root AT flying-brick DOT caverock DOT net DOT nz cc: djgpp AT delorie DOT com Subject: Re: I'm stumped! hexdump is dumping... In-Reply-To: <3507aaf0.flying-brick@flying-brick.caverock.net.nz> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.