debugging - 英特尔的 oneapi C 编译器不生成调试信息
问题描述
我有一些简单的代码
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("Hello world\n");
return EXIT_SUCCESS;
}
我想调试它,所以我像这样编译
icl.exe /Z7 /debug:all /Od main.c -o test.exe
然后我运行调试器
gdb-oneapi
但是当我加载文件时,出现以下错误:
(gdb) file test.exe
Reading symbols from test.exe...
(No debugging symbols found in test.exe)
我错过了一些重要的标志吗?
解决方案
推荐阅读
- javascript - js 代码如何使用终端获取输入文件?
- heroku - Heroku 上启用 JVM 指标的 Thorntail 应用程序
- c++ - 如何指定我要使用的重载函数
- php - nginx 位置块仅在 conf 文件中
- android - 带有左右填充的viewpager内的Android捏到缩放布局
- azure - 在计时器函数应用程序中执行 CSOM 代码时出现 400 错误请求错误
- node.js - 为什么我不能使用游标更新猫鼬模型?
- html - 在 css 中应用分词道具后对齐一行中的所有字段
- objective-c - macOS:检测所有应用程序启动,包括后台应用程序?
- python-3.x - 在pygame的主循环内循环