When using `-rtos freertos` I put a breakpoint inside a FreeRTOS task. I
run to this breakpoint, and gdb is shown the list of tasks with their
names. When gdb asks for the registers for each task, freertos.c reads the
register values from memory, through the task control block. That is
correct for tasks that are not currently active, because the registers are
saved in memory when context switching. However, it is not correct for the
currently running task. Its register values are the ones actually on the
target.

I don't see this happening anywhere in the code, but at the same time I
don't see ARM FreeRTOS users complaining about this behavior. What am
I missing? How is this supposed to work?

Thank you,
Tim
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to