[GIT PULL] kgdb changes v5.5-rc1

From: Daniel Thompson
Date: Tue Nov 26 2019 - 10:39:04 EST


The following changes since commit da0c9ea146cbe92b832f1b0f694840ea8eb33cce:

Linux 5.4-rc2 (2019-10-06 14:27:30 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/danielt/linux.git/ tags/kgdb-5.5-rc1

for you to fetch changes up to c58ff643763c78bef12874ee39995c9f7f987bc2:

kdb: Tweak escape handling for vi users (2019-10-28 12:08:29 +0000)

----------------------------------------------------------------
kgdb patches for 5.5-rc1

The major change here is the work from Douglas Anderson that
reworks the way kdb stack traces are handled on SMP systems.
The effect is to allow all CPUs to issue their stack trace which
reduced the need for architecture specific code to support stack
tracing.

Also included are general of clean ups from Doug and myself:

* Remove some unused variables or arguments.
* Tidy up the kdb escape handling code and fix a couple of odd
corner cases.
- Better ignore escape characters that do not form part of an
escape sequence. This mostly benefits vi users since they are most
likely to press escape as a nervous habit but it won't harm anyone
else.

Signed-off-by: Daniel Thompson <daniel.thompson@xxxxxxxxxx>

----------------------------------------------------------------
Daniel Thompson (6):
kdb: Avoid array subscript warnings on non-SMP builds
kdb: Tidy up code to handle escape sequences
kdb: Simplify code to fetch characters from console
kdb: Remove special case logic from kdb_read()
kdb: Improve handling of characters from different input sources
kdb: Tweak escape handling for vi users

Douglas Anderson (4):
kgdb: Remove unused DCPU_SSTEP definition
kdb: Remove unused "argcount" param from kdb_bt1(); make btaprompt bool
kdb: Fix "btc <cpu>" crash if the CPU didn't round up
kdb: Fix stack crawling on 'running' CPUs that aren't the master

kernel/debug/debug_core.c | 34 ++++++
kernel/debug/debug_core.h | 3 +-
kernel/debug/kdb/kdb_bt.c | 116 +++++++++++----------
kernel/debug/kdb/kdb_io.c | 231 ++++++++++++++++++++---------------------
kernel/debug/kdb/kdb_private.h | 1 +
5 files changed, 208 insertions(+), 177 deletions(-)