From abd3a3999fc4dfa8e62d8d56c33d113c551a7d7b Mon Sep 17 00:00:00 2001 From: Sudeep Mohanty Date: Wed, 13 Mar 2024 10:55:18 +0100 Subject: [PATCH] fix(freertos): Updated dependency list for CONFIG_FREERTOS_TASK_FUNCTION_WRAPPER option This commit updates the dependency for CONFIG_FREERTOS_TASK_FUNCTION_WRAPPER to be dependent explicitly on CONFIG_ESP_SYSTEM_PANIC_GDBSTUB or CONFIG_ESP_SYSTEM_GDBSTUB_RUNTIME instead of CONFIG_ESP_GDBSTUB_ENABLED which caused FreeRTOS Task Function Wrappers to be enabled even if the esp_gdbstub component was part of the build. --- components/freertos/Kconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/freertos/Kconfig b/components/freertos/Kconfig index 39fe8557382..c3d45a3efd7 100644 --- a/components/freertos/Kconfig +++ b/components/freertos/Kconfig @@ -338,7 +338,9 @@ menu "FreeRTOS" config FREERTOS_TASK_FUNCTION_WRAPPER bool "Wrap task functions" - depends on COMPILER_OPTIMIZATION_DEBUG || ESP_COREDUMP_ENABLE || ESP_GDBSTUB_ENABLED + #TODO: Check if FreeRTOS Task Wrapper must depend on GDBStub (IDF-9505) + depends on COMPILER_OPTIMIZATION_DEBUG || ESP_COREDUMP_ENABLE \ + || ESP_SYSTEM_PANIC_GDBSTUB || ESP_SYSTEM_GDBSTUB_RUNTIME default y help If enabled, all FreeRTOS task functions will be enclosed in a wrapper function. If a task function