]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbc9552ce5ed77beeae1046e70696e84ce3256450
treead0763f6ee248cc9e19011f4c22625f78c2bd4d5
parent20d527e148caa0342b75a096c4ba477fca3deb5d
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