-
Notifications
You must be signed in to change notification settings - Fork 60
Debugging the c code
Peter Willendrup edited this page Jan 14, 2026
·
5 revisions
If you get core-dumps, segfaults etc., there is no way around debugging your code to figure out what is happening...
Use GDB: First, compile the generated c-code including debugging symbols.
gcc -g Instrument_stripped.c -o Instrument_stripped.out
On windows it may be preferrable to use the .exe-suffix for the executable.
Then start the debugger with
gdb Instrument_stripped.out
Use LLVM, here is a list of command equivalences https://lldb.llvm.org/use/map.html