I don't know how to add debugging symbols to my compiled C code on windows. My attempt so far is below.
My test code:
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("Hello world!\n");
return EXIT_SUCCESS;
}
My compilation attempts
icl.exe main.c /debug -o testmain.exe
icl.exe main.c /debug /Z7 -o testmain.exe
icx.exe main.c /debug /Z7 -o testmain.exe
icl.exe main.c /debug /Zi -o testmain.exe
My execution
gdb-oneapi testmain.exe
The compilation generates three files: .exe, .ilk, .pdb. gdb complains that no symbols have been found in the exe.