This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] native mingw32 gdb, eol format
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 16 Jul 2013 05:50:00 +0300
- Subject: Re: [PATCH] native mingw32 gdb, eol format
- References: <1373936767-14858-1-git-send-email-yao at codesourcery dot com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Yao Qi <yao@codesourcery.com>
> Date: Tue, 16 Jul 2013 09:06:07 +0800
>
> This patch, which was written by Pedro, is to force stdout/stderr to
> binary mode prevents that expansion. This patch gets much
> improvement on the test result of mingw native gdb. Is it OK?
No, it's not. A MinGW GDB is a native Windows program, and should
behave like one. Windows programs generally don't expect text coming
through pipes to have Unix EOL format. Also, it is terribly confusing
to have GDB behave differently with its standard handles redirected to
a pipe as opposed to disk files or the console device.
This is a problem with the test suite, so please fix it in the test
suite. If you _must_ make the change in GDB, please introduce some
specialized option to do that. But changing the default behavior like
that is IMO a no-starter.