debug: Move away from openocd and make it generic

The exported structures that were originally introduced for OpenOCD have
since then been reused for other debugger plugins, including PyOCD and
Segger J-Link.

Rename the Kconfig option and the implementation from openocd to debug
thread info, so that it reflects the fact that this is no longer
specifically tied to OpenOCD.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
Carles Cufi 2021-03-11 19:51:35 +01:00 committed by Kumar Gala
commit d2465d6268
8 changed files with 146 additions and 125 deletions

View file

@ -1,8 +1,14 @@
# SPDX-License-Identifier: Apache-2.0
if(CONFIG_OPENOCD_SUPPORT)
message(WARNING "CONFIG_OPENOCD_SUPPORT is deprecated
Please use DEBUG_THREAD_INFO instead."
)
endif()
zephyr_sources_ifdef(
CONFIG_OPENOCD_SUPPORT
openocd.c
CONFIG_DEBUG_THREAD_INFO
thread_info.c
)
zephyr_sources_ifdef(