www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/15/11:14:52

Date: Sun, 15 Mar 1998 15:32:38 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
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: <Pine.SUN.3.91.980315153221.9861G-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019