This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Handle \r\n in gdbreplay
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Tom Tromey <tromey at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 21 Feb 2019 17:14:43 +0200
- Subject: Re: [PATCH] Handle \r\n in gdbreplay
- References: <20190221140513.29508-1-tromey@adacore.com>
> From: Tom Tromey <tromey@adacore.com>
> Cc: Tom Tromey <tromey@adacore.com>
> Date: Thu, 21 Feb 2019 07:05:13 -0700
>
> I tried gdbreplay yesterday, but the remotelogfile I received was made
> on Windows, so the lines were terminated with \r\n rather than plain
> \n.
>
> This patch changes gdbreplay to allow \r or \r\n line termination when
> reading the log file.
I'm okay with treating \r\n as a single \n, but do we really want to
treat a single \r as if it were \n? I thought systems which used that
EOL convention are not really widespread, to say the least.
Thanks.