Revert "kdb: Get rid of confusing diag msg from "rd" if current task has no regs"
authorDaniel Thompson <daniel.thompson@linaro.org>
Thu, 6 Feb 2020 11:40:09 +0000 (11:40 +0000)
committerDaniel Thompson <daniel.thompson@linaro.org>
Thu, 6 Feb 2020 11:40:09 +0000 (11:40 +0000)
commitfcf2736c82ca1908e3a0e74730c404baebd8ccdf
tree0e1784f5f1253c621cddfb1857e1753277569934
parentdc2c733e65848b1df8d55c83eea79fc4a868c800
Revert "kdb: Get rid of confusing diag msg from "rd" if current task has no regs"

This reverts commit bbfceba15f8d1260c328a254efc2b3f2deae4904.

When DBG_MAX_REG_NUM is zero then a number of symbols are conditionally
defined. It is therefore not possible to check it using C expressions.

Reported-by: Anatoly Pugachev <matorola@gmail.com>
Acked-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
kernel/debug/kdb/kdb_main.c