Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
324 views
in Technique[技术] by (71.8m points)

visual studio 2010 - Error Message : Cannot find or open the PDB file

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".

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)
Question&Answers:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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).

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

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

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...