On Wed, Dec 8, 2010 at 6:00 AM, David Brownell <davi...@pacbell.net> wrote: > you mentioned using an RTOS. Stepping on Cortex-M > works poorly with a common OS feature: Use of the > WFI (or WFE) instruction stops the core so that you > can't get at it using JTAG. (It saves power, but > in a way that complicates debugging.)
David, maybe this would be of some help : http://openocd.berlios.de/doc/html/GDB-and-OpenOCD.html Section 20.3 Configuring GDB for OpenOCD : Another example of useful GDB configuration came from a user who found that single stepping his Cortex-M3 didn't work well with IRQs and an RTOS until he told GDB to disable the IRQs while stepping: define hook-step mon cortex_m3 maskisr on end define hookpost-step mon cortex_m3 maskisr off end BR, Drasko _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development