Mail Archives: djgpp/1998/03/13/01:03:41
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 -