You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can use Thread::gettid function to access the thread's id when you spawn a thread. I believe this is the same id printed during errors.
I do know that the thread id is just a casted pointer to rtx's TCB structure (here). If you have a debugger connected you can get a hold of some pretty useful information.
For example with gdb:
set$tcb = (P_TCB)0x1b2b34# The entry point of the threadprint/a $tcb->ptask
# The current state of the threadprint (Thread::State)$tcb->state
# Recently called functionprint/a ((int*)$tcb->tsk_stack)[13]
# Current stack pointerprint/a $tcb->tsk_stack
Is there a way to log the ID's and reference where this is done of task creation (threads/timers)?
Currently it is hard to track down which task ID runs into a RTX error.
The text was updated successfully, but these errors were encountered: