我想调试以下文件
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("Hello world!\n");
return EXIT_SUCCESS;
}
我编译
icl.exe /debug:all main.c -o test
这会产生三个文件
test.exe
test.ikl
test.pdb
我尝试使用命令进行调试
gdb-oneapi
> file test.exe
> symbol-file test.pdb
它说 test.pdb 是一种无法识别的格式,并且 test.exe 没有调试信息。
通过 linux 进行调试没有问题。为什么这个简单的过程在 Windows 上会失败?