Handle \r\n in gdbreplay
authorTom Tromey <tromey@adacore.com>
Wed, 20 Feb 2019 21:29:23 +0000 (14:29 -0700)
committerTom Tromey <tromey@adacore.com>
Wed, 27 Feb 2019 18:54:24 +0000 (11:54 -0700)
commit43ac54fca353ea8d77d56dc5ad9e049bbb9a81fb
treefb66de396636c18e085c0e1f8e96e22928ce79a4
parent5862844d0f443b9f65e8dd0d85c43f8818d3f355
Handle \r\n in gdbreplay

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\n line termination when
reading the log file.

gdb/gdbserver/ChangeLog
2019-02-27  Tom Tromey  <tromey@adacore.com>

* gdbreplay.c (logchar): Handle \r\n.
gdb/gdbserver/ChangeLog
gdb/gdbserver/gdbreplay.c