This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [TUI] correctly display windows source files
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Denis PILAT <denis dot pilat at st dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 09 Oct 2006 21:27:47 +0200
- Subject: Re: [TUI] correctly display windows source files
- References: <452A6905.1040308@st.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Mon, 09 Oct 2006 17:21:41 +0200
> From: Denis PILAT <denis.pilat@st.com>
>
> The TUI displays windows source files with and extra blank line between
> each source line.
> Line number are wrong and changes when source is moved up and down.
>
> This patch fixes this problem and should take the case of MAC OS
> end-of-line into account.
This is okay with me, but please be sure to test the code near the end
of the file, because, according to my references, an attempt to ungetc
EOF is ignored. What happens with a file that ends in a sole `\r'?