-
Notifications
You must be signed in to change notification settings - Fork 56
Debugging the c code
Erik B Knudsen edited this page Mar 18, 2021
·
4 revisions
McCode uses #line pragmas in the generated code, in the attempt to jump between each of the included c-snippets in libraries, components etc. This unfortunately does not work well in all cases, as some files are %included, which is a simple concatenation.
A first advisable step is therefore to
grep -v ^\#line Instrument.c > Instrument_stripped.c
... to be completed later
Use GDB
Use LLVM, here is a list of command equivalences https://lldb.llvm.org/use/map.html