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: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: denis dot pilat at st dot com
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 9 Oct 2006 20:01:33 +0200 (CEST)
- Subject: Re: [TUI] correctly display windows source files
- References: <452A6905.1040308@st.com>
> Date: Mon, 09 Oct 2006 17:21:41 +0200
> From: Denis PILAT <denis.pilat@st.com>
>
> Hello,
>
> 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.
Hmm, I always get nervous when I see ungetc() calls. However, we
already use it in source.c:print_source_line_base() so I guess it is
ok. However, is there any reason why this bit of code is different
from the code in that function?
>
> 2006-10-09 Denis Pilat <denis.pilat@st.com>
>
> * tui-source.c (tui_set_source_content): handle source files that
> contain non unix end-of-line.
>