mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 09:49:21 +08:00
84c66505aa
Usage: (gdb) py NX_INITSTATE = utils.enum("enum nx_initstate_e") (gdb) py print(list(NX_INITSTATE)) [<NX_INITSTATE_E.POWERUP: 0>, <NX_INITSTATE_E.BOOT: 1>, <NX_INITSTATE_E.TASKLISTS: 2>, <NX_INITSTATE_E.MEMORY: 3>, <NX_INITSTATE_E.HARDWARE: 4>, <NX_INITSTATE_E.OSREADY: 5>, <NX_INITSTATE_E.IDLELOOP: 6>, <NX_INITSTATE_E.PANIC: 7>] (gdb) py print(NX_INITSTATE.POWERUP) NX_INITSTATE_E.POWERUP (gdb) py print(NX_INITSTATE.POWERUP.value) 0 (gdb) py print(NX_INITSTATE(1)) Signed-off-by: xuxingliang <xuxingliang@xiaomi.com> |
||
---|---|---|
.. | ||
nuttxgdb | ||
.gitignore | ||
gdbinit.py | ||
pyproject.toml | ||
requirements.txt |