Merge branch 'feature/gdb_stub_task_state' into 'master'

feature/gdb_stub: make task state available on info thread command when in gdb stub.

Closes IDF-720

See merge request espressif/esp-idf!8371
This commit is contained in:
Angus Gratton
2020-04-29 13:21:31 +08:00
5 changed files with 74 additions and 7 deletions
@@ -27,6 +27,9 @@ TEST_CASE("Tasks snapshot", "[freertos]")
esp_cpu_stall(other_core_id);
#endif
UBaseType_t task_num = uxTaskGetSnapshotAll(tasks, TEST_MAX_TASKS_NUM, &tcb_sz);
for (uint32_t i = 0; i < task_num; i++) {
TEST_ASSERT_EQUAL(tasks[i].eState, eTaskGetState(tasks[i].pxTCB));
}
#ifndef CONFIG_FREERTOS_UNICORE
esp_cpu_unstall(other_core_id);
#endif