Windows 10 LLDB错误:无法将断点解析到任何实际位置 [英] Windows 10 LLDB error: Unable to resolve breakpoint to any actual locations

查看:10
本文介绍了Windows 10 LLDB错误:无法将断点解析到任何实际位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是Windows 10,使用MSVC 16编译了llvm 11。

这是main.cpp:

#include <iostream>

int main()
{
  std::cout << "Hello world" << std::endl;
}

这些是我运行的命令

clang -g -O0 main.cpp -o a.exe

lldb a.exe
(lldb) target create "a.exe
Current executable set to 'C:a.exe' (x86_64).
(lldb) b main.cpp:5
Breakpoint 1: no locations (pending).
WARNING: Unable to resolve breakpoint to any actual locations.
(lldb) b main
Breakpoint 2: no locations (pending).
WARNING: Unable to resolve breakpoint to any actual locations.
(lldb) breakpoint set --name main
Breakpoint 3: no locations (pending).
WARNING: Unable to resolve breakpoint to any actual locations.

我做错了什么?

推荐答案

我成功地使用these detailed instructions重新编译了llvm,以便在Windows上编译lldb。

具体:

  • 已安装用于Visual Studio社区2019的Visual Studio SDK
  • 安装了最新的Windows 10 SDK
  • 使用regsvr32注册调试接口访问DLL(C:程序文件(X86)Microsoft Visual Studio2019Community DIA SDKinmsdia140.dll和C:Program Files(X86)Microsoft Visual Studio2019Community DIA SDKinamd64msdia140.dll)

这篇关于Windows 10 LLDB错误:无法将断点解析到任何实际位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆