This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: GDB doesn't show the correct line
"Eli Zaretskii" <eliz@gnu.org> writes:
>> Cc: tromey@redhat.com, drow@false.org, otto.wyss@orpatec.ch,
>> gdb@sources.redhat.com
>> From: Andreas Schwab <schwab@suse.de>
>> Date: Sun, 14 Nov 2004 22:24:28 +0100
>>
>> But the more problematic cases would be \n\r or \r\r\n.
>
> Why are these more problematic?
Because they look like non-canonical line endings, but can be interpreted
as two line endings when using a strict interpretation. The first one
could be a Unix newline followed by a Mac newline, or a non-canonical DOS
newline (should non-canonical DOS newlines be recognized?). The second
one could be a Mac newline followed by a DOS newline, or a spurious CR
followed by a DOS newline (should spurious CRs be ignored?).
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."