|
From: Liviu I. <il...@li...> - 2016-05-31 08:52:42
|
> On 31 May 2016, at 10:56, Paul Fertser <fer...@gm...> 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 |