This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

No I/O redirection under GDB


I just found that gdb's "run" command doesn't action redirection (e.g. run
</dev/pty2 >/dev/pty2 2>&1, where the shell on /dev/pty2 is doing a long sleep).
Instead, the invoked program gets the redirections as command line arguments.

Looking through the archives, I found
https://sourceware.org/ml/cygwin/1999-04/msg00355.html documenting this
behaviour. Chris Faylor commented at the time that fixing it was more trouble
than it appeared.

That was 15 years ago - has anything changed since? Anyone up for this or should
I have a go? I *could* simply make my target do the redirection itself, but that
doesn't help anyone else. OTOH if changing gdb really *is* that hard, maybe I
should just change my program anyway.

Any advice welcomed,

Cheers ... Duncan.

--
 Please avoid sending me Word or PowerPoint attachments.
 See http://www.gnu.org/philosophy/no-word-attachments.html

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]