delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/13/01:03:41

Date: Thu, 12 Mar 1998 19:34:06 -0800 (PST)
Message-Id: <199803130334.TAA08585@adit.ap.net>
Mime-Version: 1.0
To: root AT flying-brick DOT caverock DOT net DOT nz, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: I'm stumped! hexdump is dumping...

At 09:29  3/12/1998 NZT-12DST, Eric Gillespie wrote:

>... in this case, hexdump is the file I want to debug. 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-))
>The program works correctly (or appears to) when I fed it a file on the 
>commandline, such as:
>brick:$ hexdump -t filedir.c
>but I have tried to also design with piping in mind...though DOS'es pipes 
>are brain-dead files on disk until finished with...

Yeah, AFAIK you can't use pipes or redirection when debugging. Somebody
please correct me if I'm wrong. I think you'll just have to use your
file-feeding version, and hope you don't have a bug that only shows up when
reading from `stdin'...

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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