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: [patch] Build arm-elf-gdb on mingw host


> Date: Mon, 26 Sep 2005 05:46:17 +0100
> From: Dave Murphy <wintermute2k4@ntlworld.com>
> CC: Eli Zaretskii <eliz@gnu.org>,  gdb-patches@sources.redhat.com
> 
> Sorry, I should have said that under mingw/msys files read in text mode 
> have line endings converted. There are numerous places in chew.c where 
> it checks for a newline character with expressions like "while (at (tos, 
> idx) == '\n')", see skip_white_and_stars(src,  idx), 
> strip_trailing_newlines(),  remove_noncomments (src, dst), 
> outputdots(),  courierize(),  bulletize(), copy_past_newline (ptr, idx, 
> dst), kill_bogus_lines(), indent(), skip_past_newline () and  nextword 
> (string, word). It seemed easier to just read the input files as binary 
> and suppress the conversion rather than make all the code deal with the 
> "/r/n" sequence.

Text-mode read conversion just removes \r from a \r\n  pair, thus
doing exactly what you want.

Others suggested that you actually mean the problem is with makeinfo,
not with chew.  The error messages you show us also seem to indicate
that this is the problem.  Can you please confirm that this indeed is
the case?


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