diff --git a/sched/sched/sched_get_stateinfo.c b/sched/sched/sched_get_stateinfo.c index 1d7d2c5575b..024a7afa169 100644 --- a/sched/sched/sched_get_stateinfo.c +++ b/sched/sched/sched_get_stateinfo.c @@ -51,6 +51,9 @@ static FAR const char * const g_statenames[] = "Inactive", "Waiting,Semaphore", "Waiting,Signal" +#ifdef CONFIG_SCHED_EVENTS + , "Waiting,Event" +#endif #if !defined(CONFIG_DISABLE_MQUEUE) || !defined(CONFIG_DISABLE_MQUEUE_SYSV) , "Waiting,MQ empty" , "Waiting,MQ full" diff --git a/tools/pynuttx/nxgdb/thread.py b/tools/pynuttx/nxgdb/thread.py index c2fc9413c6b..1e45a307acf 100644 --- a/tools/pynuttx/nxgdb/thread.py +++ b/tools/pynuttx/nxgdb/thread.py @@ -435,6 +435,8 @@ class TaskState(Enum): Inactive = auto() Waiting_Semaphore = auto() Waiting_Signal = auto() + if utils.get_symbol_value("CONFIG_SCHED_EVENTS"): + Waiting_Event = auto() if not utils.get_symbol_value( "CONFIG_DISABLE_MQUEUE" ) or not utils.get_symbol_value("CONFIG_DISABLE_MQUEUE_SYSV"):