kconfig: qconf: make debug links work again
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 30 Jun 2020 06:26:37 +0000 (08:26 +0200)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 1 Jul 2020 14:57:53 +0000 (23:57 +0900)
commitc4f7398bee9c49bd79930d4a856fb6291d20cde3
tree4c46e5e263c86dcaa3b6d4bd6b50cb46cabec16b
parentc699eaaba98322872adbf4a55e7d679016d27b2d
kconfig: qconf: make debug links work again

The Qt5 conversion broke support for debug info links.

Restore the behaviour added by changeset
ab45d190fd4a ("kconfig: create links in info window").

The original approach was to pass a pointer for a data struct
via an <a href>. That doesn't sound a good idea, as, if something
gets wrong, the app could crash. So, instead, pass the name of
the symbol, and validate such symbol at the hyperlink handling
logic.

Link: https://lore.kernel.org/lkml/20200628125421.12458086@coco.lan/
Reported-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/qconf.cc
scripts/kconfig/qconf.h