This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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]

Re: [RFC] Testsuite: Avoid \r\r\n problem of *-*-mingw* host


On Tue, Sep 17, 2013 at 7:11 PM, Joel Brobecker <brobecker@adacore.com> wrote:
>>   Here is an alternate proposal to get rid of that double \r
>> problem encountered when running the testsuite with mingw host GDB.
>>
>>   maint set testsuite-mode on
>> force stdout and stderr to use binary mode.
>>
>>   maint set testsuite-mode off
>> restores stdout and stderr "normal" text mode behavior.
>
> FWIW, I tend to think that it's better to test the debugger in
> an environment that is as close as possible to reality. For
> those reasons, I tend to favor Yao's approach.  But it's not
> a strong opinion.

Can someone explain how \r\r\n occurs?
Presumably two difference pieces of software are doing the \n -> \r\n
translation.
What are they?

[hacking the testsuite may be preferable in some way, but I'm worried
that road will be long and painful]


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