On Tue, May 31, 2016 at 07:03:41PM +1200, Kevin & Pauline Gordon wrote:
> Debugging reaches the first line of main.cpp
> 
> 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. That said, I personally prefer debugging with full
optimisations turned on as it uncovers more issues with the code, and
when I'm in doubt I'm looking at the assembly listing anyway. You can
also try to pinpoint the address where it starts to go "wrong" and
single-instruction-step around it to understand what's happening.

> It is a multi-threaded program: do I need any special settings?

There's some support for certain RTOSes, please see the manual.

-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:[email protected]

------------------------------------------------------------------------------
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