kgdb: enable arch to support XML packet.
authorVincent Chen <vincent.chen@sifive.com>
Tue, 23 Jun 2020 05:36:42 +0000 (13:36 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Fri, 10 Jul 2020 03:09:28 +0000 (20:09 -0700)
commit8c080d3a974ad471d8324825851044284f1886c9
treead0763f6ee248cc9e19011f4c22625f78c2bd4d5
parentdcb7fd82c75ee2d6e6f9d8cc71c52519ed52e258
kgdb: enable arch to support XML packet.

The XML packet could be supported by required architecture if the
architecture defines CONFIG_HAVE_ARCH_KGDB_QXFER_PKT and implement its own
kgdb_arch_handle_qxfer_pkt(). Except for the kgdb_arch_handle_qxfer_pkt(),
the architecture also needs to record the feature supported by gdb stub
into the kgdb_arch_gdb_stub_feature, and these features will be reported
to host gdb when gdb stub receives the qSupported packet.

Signed-off-by: Vincent Chen <vincent.chen@sifive.com>
Acked-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
include/linux/kgdb.h
kernel/debug/gdbstub.c
lib/Kconfig.kgdb