kdb: support new lines without carriage returns
authorColin Cross <ccross@android.com>
Thu, 15 Mar 2012 02:26:53 +0000 (19:26 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:52:21 +0000 (13:52 -0800)
commitc70fe44edf89b1d70b96540608cac56f81ff5667
tree7a088986c57225ed50c45defc863a5c429d59b7e
parent35d99e56465d412e1bf707c31363650506bd15fa
kdb: support new lines without carriage returns

kdb expects carriage returns through the serial port to terminate
commands.  Modify it to accept the first seen carriage return or
new line as a terminator, but not treat \r\n as two terminators.

Change-Id: I06166017e7703d24310eefcb71c3a7d427088db7
Signed-off-by: Colin Cross <ccross@android.com>
kernel/debug/kdb/kdb_io.c