Nived schrieb:
> Hi,
> 
> i am using openocd 0.4.0 to debug an intelmote2 device. I am able to set
> a break point and then transfer control to that point. When i do a
> continue (c) or a next (n) the execution returns to the same point. 
> 
> Is there any particular reason why this may be happening ?

This happens to me (on Cortex M3 / LPC1768) when I have Interrupts on,
e.g. Timer. The Timer keeps running when the core is halted; When you
hit "continue" it will first execute the interrupt vector and then
returns to the instruction that has the breakpoint set, thus hitting it
again. I can see this when I use the "step" command instead of "next".
You might try switching off interrupts for code stepping.
There is a "cortex_m3 maskisr on|off" command for Cortex M3 MCUs, I
suspect there is something similar for other ARM CPUs. Hint: GDB can
exectue scripts on stepping on/off.


-- J.Fischer

_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to