> On 31 May 2016, at 10:56, Paul Fertser <[email protected]> wrote:
> 
>> Step over jumps off into another function: step over carries on through that
>> functions statements but does not return to main.cpp
> 
> If you compile with -O0 the debugging session will likely be more
> predictable.

since you are using GNU ARM Eclipse OpenOCD, I assume you are also using the 
GNU ARM Eclipse plug-ins, so if you create projects with the wizards, by 
default you get a Debug configuration, with -Og and a Release configuration, 
with -Os.

-Og was added to GCC as a debugger friendly optimisation level. the code is not 
as bad as with -O0, but still tries to preserve the original order, so the 
debugger shouldn't be very jumpy. -Os is optimised for size, and the code may 
be reordered, making debugging more difficult.

however, as Paul said, if you want a very predictable debugging session, use 
-O0.

---

so, apart from the jumpy debugger, is your OpenOCD configuration functional now?


regards,

Liviu


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to