From 118b424dd12d816cbaf71daa0c8dc44094bc74af Mon Sep 17 00:00:00 2001 From: Erhan Kurubas Date: Mon, 17 Nov 2025 14:38:03 +0100 Subject: [PATCH] change(freertos): add task count and pointer width to OpenOCD debug table --- .../freertos/esp_additions/freertos_tasks_c_additions.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/freertos/esp_additions/freertos_tasks_c_additions.h b/components/freertos/esp_additions/freertos_tasks_c_additions.h index 5ed38208ee..b59262f3af 100644 --- a/components/freertos/esp_additions/freertos_tasks_c_additions.h +++ b/components/freertos/esp_additions/freertos_tasks_c_additions.h @@ -1122,6 +1122,8 @@ void * pvTaskGetCurrentTCBForCore( BaseType_t xCoreID ) ESP_FREERTOS_DEBUG_LIST_END_PREV, ESP_FREERTOS_DEBUG_LIST_ITEM_PREV, ESP_FREERTOS_DEBUG_LIST_ITEM_OWNER, + ESP_FREERTOS_DEBUG_TASK_COUNT_WIDTH, + ESP_FREERTOS_DEBUG_PTR_WIDTH, /* New entries must be inserted here */ ESP_FREERTOS_DEBUG_TABLE_END, }; @@ -1141,7 +1143,9 @@ void * pvTaskGetCurrentTCBForCore( BaseType_t xCoreID ) offsetof( List_t, xListEnd ), /* list_end_offset */ offsetof( List_t, xListEnd.pxPrevious ), /* list_next_offset */ offsetof( ListItem_t, pxPrevious ), /* list_elem_next_offset */ - offsetof( ListItem_t, pvOwner ) /* list_elem_content_offset */ + offsetof( ListItem_t, pvOwner ), /* list_elem_content_offset */ + sizeof( UBaseType_t ), /* task_count_width */ + sizeof( void * ) /* ptr_width */ }; #endif /* CONFIG_FREERTOS_DEBUG_OCDAWARE */