zephyr/subsys/debug/CMakeLists.txt
Carles Cufi d2465d6268 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>
2021-03-17 14:43:01 -05:00

38 lines
585 B
CMake

# 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_DEBUG_THREAD_INFO
thread_info.c
)
zephyr_sources_ifdef(
CONFIG_ASAN
asan_hacks.c
)
zephyr_sources_ifdef(
CONFIG_THREAD_ANALYZER
thread_analyzer.c
)
add_subdirectory_ifdef(
CONFIG_DEBUG_COREDUMP
coredump
)
zephyr_sources_ifdef(
CONFIG_GDBSTUB
gdbstub.c
)
zephyr_sources_ifdef(
CONFIG_GDBSTUB_SERIAL_BACKEND
gdbstub/gdbstub_backend_serial.c
)