I have a problem debugging a C program with Eclipse Neon and toradex GDB debugger.
I have copied the example and I have placed a breakpoint on a row.
The debugger stops at that row but if I press Step Into or Step Over to go to the next row (it is a simple assignment) the debugger goes to a random line which can be two rows above etc. if I repeat this debug several times and continue the Step Over process instead of going line by line and following the program flow it randomly jumps back etc. (even in the simple hello world program).
Also sometimes if I place a break point in a certain point it is never triggered while if I place it in a lice which is immediately below it it is triggered.
What should I do?
I followed all the instructions to configure Ubuntu and Eclipse Neon.