Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Debugging "Next line"
#1
Sometimes there is a problem with the "Next Line" command at the end of loops. EmBitz does not stop the execution of the code. This usually happens with optimized code, but in the attached project the problem can be reproduced with "Debug" target.
This is not a problem with Eblink because I have the same problem with other gdb servers.
EmBitz version 2.41.


Attached Files
.zip   gdb_test.zip (Size: 162.22 KB / Downloads: 78)
Reply
#2
This is GDB related
Reply
#3
(19-06-2022, 04:21 PM)embitz Wrote: This is GDB related

I think the gdb server just execute the commands sent from EmBitz. This happens to eblink and others. EmBitz simply continues to issue step commands, even when the end of the cycle has passed then whole think repeats.
Reply
#4
Well, that's not the case. The abstraction level is different, GDB is doing this.

E.g. You can single step over lines from CLI with only GDB. An IDE debugger is only a sophisticated front-end for GDB.
Reply
#5
I got it. Thanks for the explanation and patience.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)