LLDB警告:无法在Windows 10上解析断点以获取任何实际位置。

huangapple go评论101阅读模式
英文:

LLDB warning: Unable to resolve breakpoint to any actual locations on Windows 10

问题

在使用clang -g .\main.cpp -o .\main.exe编译我的Hello World程序后,我尝试运行并设置断点,但无法解析。

lldb .\main.exe
(lldb) target create ".\\main.exe"
(lldb) Current executable set to 'C:\Hello World\src\main.exe' (x86_64).
(lldb) b main
Breakpoint 1: no locations (pending).
WARNING: Unable to resolve breakpoint to any actual locations.

我做错了什么?
另外,我通过Chocolatey安装了LLVM,并且我正在运行Windows 10。

英文:

after compiling my hello world program with clang -g .\main.cpp -o .\main.exe I then run and try to set a breakpoint but it does not resolve.

lldb .\main.exe
(lldb) target create ".\\main.exe"
(lldb) Current executable set to 'C:\Hello World\src\main.exe' (x86_64).
(lldb) b main
Breakpoint 1: no locations (pending).
WARNING:  Unable to resolve breakpoint to any actual locations.

What am I doing wrong?
Also I installed LLVM through chocolatey and I am running windows 10.

答案1

得分: 1

我修复了它。我只需要使用regsvr32注册两个dll,C:\Program Files\Microsoft Visual Studio\2022\Community\DIA SDK\bin\msdia140.dllC:\Program Files\Microsoft Visual Studio\2022\Community\DIA SDK\bin\amd64\msdia140.dll

英文:

I fixed it. I just needed to register two dlls with regsvr32, C:\Program Files\Microsoft Visual Studio\2022\Community\DIA SDK\bin\msdia140.dll & C:\Program Files\Microsoft Visual Studio\2022\Community\DIA SDK\bin\amd64\msdia140.dll

huangapple
  • 本文由 发表于 2023年6月8日 01:59:41
  • 转载请务必保留本文链接:https://go.coder-hub.com/76425950.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定