错误消息:无法找到或打开 PDB 文件 [英] Error Message : Cannot find or open the PDB file

查看:27
本文介绍了错误消息:无法找到或打开 PDB 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试运行 NVIDIA 官方网站提供的示例程序.大多数程序运行顺利,除了少数我收到类似错误消息的地方.我该如何解决?这是我在运行名为MatrixMul"的程序后得到的错误消息示例.

I tried running sample programs provided at NVIDIA's official site. Most of the programs ran smoothly except few where I get similar error messages. How can I fix that? Here's a sample of error message I got after running a program named "MatrixMul".

注意:我已经在我的 Window7x64 上安装了 x32 和 x64 NVIDIA CUDA Toolkit v5.0操作系统.

Note: I have installed both x32 and x64 NVIDIA CUDA Toolkit v5.0 on my Window7x64 OS.

'matrixMul.exe': Loaded 'C:ProgramDataNVIDIA CorporationCUDA Samplesv5.0inwin32DebugmatrixMul.exe', Symbols loaded.
'matrixMul.exe': Loaded 'C:WindowsSysWOW64
tdll.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64kernel32.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64KernelBase.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:Program Files (x86)NVIDIA GPU Computing ToolkitCUDAv5.0incudart32_50_35.dll', Binary was not built with debug information.
'matrixMul.exe': Loaded 'C:WindowsSysWOW64apphelp.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsAppPatchAcLayers.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64sspicli.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64msvcrt.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64
pcrt4.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64cryptbase.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64sechost.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64user32.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64gdi32.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64lpk.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64usp10.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64advapi32.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64shell32.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64shlwapi.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64ole32.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64oleaut32.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64userenv.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64profapi.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64winspool.drv', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64mpr.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64imm32.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64msctf.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64
vinit.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64
vcuda.dll', Binary was not built with debug information.
'matrixMul.exe': Loaded 'C:WindowsSysWOW64setupapi.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64cfgmgr32.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64devobj.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64dwmapi.dll', Cannot find or open the PDB file
'matrixMul.exe': Unloaded 'C:WindowsSysWOW64dwmapi.dll'
'matrixMul.exe': Loaded 'C:WindowsSysWOW64
vapi.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64version.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64wintrust.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64crypt32.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:WindowsSysWOW64msasn1.dll', Cannot find or open the PDB file
The thread 'Win32 Thread' (0x12fc) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x18a0) has exited with code 0 (0x0).
The program '[3104] matrixMul.exe: Native' has exited with code 0 (0x0)

推荐答案

PDB 文件是 Visual Studio 特定的文件,其中包含项目的调试符号.您可以忽略这些消息,除非您希望使用调试器进入这些 dll 的代码(这值得怀疑,因为那些是系统 dll).换句话说,您可以并且应该忽略它们,因为您不会拥有任何这些 dll 的 PDB 文件(至少在默认情况下,事实证明您实际上可以在通过 Microsoft 符号服务器).这意味着当您设置断点并单步执行代码时,您将无法进入任何这些 dll(无论如何您都不想这样做).

The PDB file is a Visual Studio specific file that has the debugging symbols for your project. You can ignore those messages, unless you're hoping to step into the code for those dlls with the debugger (which is doubtful, as those are system dlls). In other words, you can and should ignore them, as you won't have the PDB files for any of those dlls (by default at least, it turns out you can actually obtain them when debugging via the Microsoft Symbol Server). All it means is that when you set a breakpoint and are stepping through the code, you won't be able to step into any of those dlls (which you wouldn't want to do anyways).

为了完整起见,这里是来自 MSDN 的官方 PDB 描述:

Just for completeness, here's the official PDB description from MSDN:

程序数据库 (PDB) 文件包含调试和项目状态信息,允许增量链接程序的调试配置.使用/ZI 或/Zi

A program database (PDB) file holds debugging and project state information that allows incremental linking of a Debug configuration of your program. A PDB file is created when you compile a C/C++ program with /ZI or /Zi

另外为了将来参考,如果您想为自己的代码使用 PDB 文件,则必须在启用/ZI 或/Zi 选项的情况下构建您的项目(您可以通过项目属性设置它们 --> C/C++ --> 常规,然后设置字段为调试信息格式").与您的情况无关,但我认为它将来可能会有用

Also for future reference, if you want to have PDB files for your own code, you would would have to build your project with either the /ZI or /Zi options enabled (you can set them via project properties --> C/C++ --> General, then set the field for "Debug Information Format"). Not relevant to your situation, but I figured it might be useful in the future

这篇关于错误消息:无法找到或打开 PDB 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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