Mail Archives: djgpp/1996/04/28/05:19:09
On Sat, 27 Apr 1996 j DOT aldrich6 AT genie DOT com wrote:
> P.S. Is there any way to redirect the output of a program to stderr without
> having gdb's stderr redirected also? Typing 'gdb redir -ea <file> <program>'
AFAIK, gdb and the debuggee share the file descriptors (this is still
single-process DOS, remember?). You will have to tweak gdb to use console
I/O instead of file I/O to achieve that kind of redirection (which, btw,
is something that must be done anyway IMHO, to make gdb more stable when
debugging programs that redirect their standard streams).
- Raw text -