I am doing some UPnP related work, and on some situation I downloaded : mrjimenez-pupnp-last_svn_trunk-364-g9f17244 from GIT.

My main purpose was to understand the source code of UPNP Stack e.g. how thread , ssdp, timers, gena things works, and for that reason I compiled it on windows , and later thought to use windows debugging to analyses the source code.


(Visual Studio 2010) I followed the usual steps as mentioned on readme, -- Took the specific pthreads-w32 and rename its folder name as pthreads. Or -- pthreads-w32-2.7.0.zip got this, and generated latest pthreadVC2.dll,pthreadVC2.lib and tried to debug tvctrlpt,tvdevice etc, but nothing works, Visual studio says same message " Cannot find or open the PDB file" Seems something I am missing here, May you please provide me your comments on it,


While Building


1>------ Build started: Project: ixml, Configuration: Debug Win32 ------
2>------ Build started: Project: threadutil, Configuration: Debug Win32 ------
2>Build started 7/5/2012 7:08:04 PM.
1>Build started 7/5/2012 7:08:04 PM.
1>InitializeBuildStatus:
1>  Creating "D:\libupnp\build\vc10\out.vc10.Win32\Debug\tmp\ixml\ixml.unsuccessfulbuild" because "AlwaysCreate" was specified.
2>InitializeBuildStatus:
2>  Creating "D:\libupnp\build\vc10\out.vc10.Win32\Debug\tmp\threadutil\threadutil.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>ClCompile:
2>ClCompile:
2>  All outputs are up-to-date.
1>  All outputs are up-to-date.
2>Lib:
2>  threadutil.vcxproj -> D:\libupnp\build\vc10\out.vc10.Win32\Debug\lib\threadutil\threadutil.lib
2>FinalizeBuildStatus:
2>  Deleting file "D:\libupnp\build\vc10\out.vc10.Win32\Debug\tmp\threadutil\threadutil.unsuccessfulbuild".
2>  Touching "D:\libupnp\build\vc10\out.vc10.Win32\Debug\tmp\threadutil\threadutil.lastbuildstate".
2>
2>Build succeeded.
2>
2>Time Elapsed 00:00:04.62
1>Lib:
1>  ixml.vcxproj -> D:\libupnp\build\vc10\out.vc10.Win32\Debug\lib\ixml\ixml.lib
1>FinalizeBuildStatus:
1>  Deleting file "D:\libupnp\build\vc10\out.vc10.Win32\Debug\tmp\ixml\ixml.unsuccessfulbuild".
1>  Touching "D:\libupnp\build\vc10\out.vc10.Win32\Debug\tmp\ixml\ixml.lastbuildstate".
1>
1>Build succeeded.
1>
1>Time Elapsed 00:00:04.95
3>------ Build started: Project: libupnp, Configuration: Debug Win32 ------
3>Build started 7/5/2012 7:08:09 PM.
3>InitializeBuildStatus:
3>  Creating "D:\libupnp\build\vc10\out.vc10.Win32\Debug\tmp\libupnp\libupnp.unsuccessfulbuild" because "AlwaysCreate" was specified.
3>ClCompile:
3>  All outputs are up-to-date.
3>Link:
3>     Creating library D:\libupnp\build\vc10\out.vc10.Win32\Debug\bin\libupnp.lib and object D:\libupnp\build\vc10\out.vc10.Win32\Debug\bin\libupnp.exp
3>  libupnp.vcxproj -> D:\libupnp\build\vc10\out.vc10.Win32\Debug\bin\libupnp.dll
3>CopyFilesToOutputDirectory:
3>  Copying file from "D:\libupnp\build\vc10\out.vc10.Win32\Debug\tmp\libupnp\libupnp.pdb" to "D:\libupnp\build\vc10\out.vc10.Win32\Debug\bin\libupnp.pdb".
3>FinalizeBuildStatus:
3>  Deleting file "D:\libupnp\build\vc10\out.vc10.Win32\Debug\tmp\libupnp\libupnp.unsuccessfulbuild".
3>  Touching "D:\libupnp\build\vc10\out.vc10.Win32\Debug\tmp\libupnp\libupnp.lastbuildstate".
3>
3>Build succeeded.
3>
3>Time Elapsed 00:00:09.43
4>------ Build started: Project: tvctrlpt, Configuration: Debug Win32 ------
4>Build started 7/5/2012 7:08:19 PM.
4>InitializeBuildStatus:
4>  Creating "D:\libupnp\build\vc10\out.vc10.Win32\Debug\tmp\tvctrlpt\tvctrlpt.unsuccessfulbuild" because "AlwaysCreate" was specified.
4>ClCompile:
4>  All outputs are up-to-date.
5>------ Build started: Project: tvdevice, Configuration: Debug Win32 ------
5>Build started 7/5/2012 7:08:19 PM.
5>InitializeBuildStatus:
5>  Creating "D:\libupnp\build\vc10\out.vc10.Win32\Debug\tmp\tvdevice\tvdevice.unsuccessfulbuild" because "AlwaysCreate" was specified.
5>ClCompile:
5>  All outputs are up-to-date.
6>------ Build started: Project: tvcombo, Configuration: Debug Win32 ------
6>Build started 7/5/2012 7:08:20 PM.
6>InitializeBuildStatus:
6>  Creating "D:\libupnp\build\vc10\out.vc10.Win32\Debug\tmp\tvcombo\tvcombo.unsuccessfulbuild" because "AlwaysCreate" was specified.
6>ClCompile:
6>  All outputs are up-to-date.
4>Link:
4>  tvctrlpt.vcxproj -> D:\libupnp\build\vc10\out.vc10.Win32\Debug\bin\tvctrlpt.exe
5>Link:
5>  tvdevice.vcxproj -> D:\libupnp\build\vc10\out.vc10.Win32\Debug\bin\tvdevice.exe
6>Link:
6>  tvcombo.vcxproj -> D:\libupnp\build\vc10\out.vc10.Win32\Debug\bin\tvcombo.exe
5>CopyFilesToOutputDirectory:
5>  Copying file from "D:\libupnp\build\vc10\out.vc10.Win32\Debug\tmp\tvdevice\tvdevice.pdb" to "D:\libupnp\build\vc10\out.vc10.Win32\Debug\bin\tvdevice.pdb".
5>PostBuildEvent:
5>  Description: Copy sample web folder and pthreadVC2.dll to output dir
5>  D:\libupnp\build\vc10\..\..\pthreads\lib\pthreadGC2.dll
5>  D:\libupnp\build\vc10\..\..\pthreads\lib\pthreadGCE2.dll
5>  D:\libupnp\build\vc10\..\..\pthreads\lib\pthreadVC2.dll
5>  D:\libupnp\build\vc10\..\..\pthreads\lib\pthreadVSE2.dll
5>          4 file(s) copied.
5>  A subdirectory or file D:\libupnp\build\vc10\out.vc10.Win32\Debug\bin\web already exists.
5>  D:\libupnp\build\vc10\..\..\upnp\sample\web\tvcombodesc.xml
5>  D:\libupnp\build\vc10\..\..\upnp\sample\web\tvcontrolSCPD.xml
5>  D:\libupnp\build\vc10\..\..\upnp\sample\web\tvdevicedesc.xml
5>  D:\libupnp\build\vc10\..\..\upnp\sample\web\tvdevicepres.html
5>  D:\libupnp\build\vc10\..\..\upnp\sample\web\tvpictureSCPD.xml
5>  5 File(s) copied
5>FinalizeBuildStatus:
5>  Deleting file "D:\libupnp\build\vc10\out.vc10.Win32\Debug\tmp\tvdevice\tvdevice.unsuccessfulbuild".
5>  Touching "D:\libupnp\build\vc10\out.vc10.Win32\Debug\tmp\tvdevice\tvdevice.lastbuildstate".
5>
5>Build succeeded.
5>
5>Time Elapsed 00:00:06.98
6>CopyFilesToOutputDirectory:
6>  Copying file from "D:\libupnp\build\vc10\out.vc10.Win32\Debug\tmp\tvcombo\tvcombo.pdb" to "D:\libupnp\build\vc10\out.vc10.Win32\Debug\bin\tvcombo.pdb".
4>CopyFilesToOutputDirectory:
4>  Copying file from "D:\libupnp\build\vc10\out.vc10.Win32\Debug\tmp\tvctrlpt\tvctrlpt.pdb" to "D:\libupnp\build\vc10\out.vc10.Win32\Debug\bin\tvctrlpt.pdb".
4>PostBuildEvent:
4>  Description: Copy sample web folder and pthreadVC2.dll to output dir
6>PostBuildEvent:
6>  Description: Copy sample web folder and pthreadVC2.dll to output dir
6>  D:\libupnp\build\vc10\..\..\pthreads\lib\pthreadGC2.dll
4>  D:\libupnp\build\vc10\..\..\pthreads\lib\pthreadGC2.dll
6>  D:\libupnp\build\vc10\..\..\pthreads\lib\pthreadGCE2.dll
4>  D:\libupnp\build\vc10\..\..\pthreads\lib\pthreadGCE2.dll
4>  D:\libupnp\build\vc10\..\..\pthreads\lib\pthreadVC2.dll
6>  D:\libupnp\build\vc10\..\..\pthreads\lib\pthreadVC2.dll
6>  D:\libupnp\build\vc10\..\..\pthreads\lib\pthreadVSE2.dll
4>  D:\libupnp\build\vc10\..\..\pthreads\lib\pthreadVSE2.dll
6>          4 file(s) copied.
4>          4 file(s) copied.
4>  A subdirectory or file D:\libupnp\build\vc10\out.vc10.Win32\Debug\bin\web already exists.
6>  A subdirectory or file D:\libupnp\build\vc10\out.vc10.Win32\Debug\bin\web already exists.
6>  D:\libupnp\build\vc10\..\..\upnp\sample\web\tvcombodesc.xml
4>  D:\libupnp\build\vc10\..\..\upnp\sample\web\tvcombodesc.xml
6>  D:\libupnp\build\vc10\..\..\upnp\sample\web\tvcontrolSCPD.xml
6>  D:\libupnp\build\vc10\..\..\upnp\sample\web\tvdevicedesc.xml
4>  D:\libupnp\build\vc10\..\..\upnp\sample\web\tvcontrolSCPD.xml
4>  D:\libupnp\build\vc10\..\..\upnp\sample\web\tvdevicedesc.xml
6>  D:\libupnp\build\vc10\..\..\upnp\sample\web\tvdevicepres.html
6>  D:\libupnp\build\vc10\..\..\upnp\sample\web\tvpictureSCPD.xml
6>  5 File(s) copied
4>  D:\libupnp\build\vc10\..\..\upnp\sample\web\tvdevicepres.html
4>  D:\libupnp\build\vc10\..\..\upnp\sample\web\tvpictureSCPD.xml
4>  5 File(s) copied
6>FinalizeBuildStatus:
6>  Deleting file "D:\libupnp\build\vc10\out.vc10.Win32\Debug\tmp\tvcombo\tvcombo.unsuccessfulbuild".
6>  Touching "D:\libupnp\build\vc10\out.vc10.Win32\Debug\tmp\tvcombo\tvcombo.lastbuildstate".
6>
6>Build succeeded.
6>
6>Time Elapsed 00:00:09.50
4>FinalizeBuildStatus:
4>  Deleting file "D:\libupnp\build\vc10\out.vc10.Win32\Debug\tmp\tvctrlpt\tvctrlpt.unsuccessfulbuild".
4>  Touching "D:\libupnp\build\vc10\out.vc10.Win32\Debug\tmp\tvctrlpt\tvctrlpt.lastbuildstate".
4>
4>Build succeeded.
4>
4>Time Elapsed 00:00:10.73
========== Build: 6 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

 

While Debugging


'tvctrlpt.exe': Loaded 'D:\libupnp\build\vc10\out.vc10.Win32\Debug\bin\tvctrlpt.exe', Cannot find or open the PDB file
'tvctrlpt.exe': Loaded 'C:\Windows\System32\ntdll.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\System32\kernel32.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'D:\libupnp\build\vc10\out.vc10.Win32\Debug\bin\pthreadVC2.dll', Exports loaded.
'tvctrlpt.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\System32\wsock32.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\System32\ws2_32.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\System32\nsi.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'D:\libupnp\build\vc10\out.vc10.Win32\Debug\bin\libupnp.dll', Exports loaded.
'tvctrlpt.exe': Loaded 'C:\Windows\System32\IPHLPAPI.DLL', Exports loaded.
'tvctrlpt.exe': Loaded 'C:\Windows\System32\winnsi.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\System32\msvcr100d.dll', Symbols loaded.
'tvctrlpt.exe': Loaded 'C:\Windows\incops3\ICDCNL.dll', Binary was not built with debug information.
'tvctrlpt.exe': Loaded 'C:\Windows\System32\user32.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\System32\gdi32.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\System32\lpk.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\System32\usp10.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\System32\advapi32.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\System32\sechost.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\System32\oleaut32.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\System32\ole32.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\System32\imm32.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\System32\msctf.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\incops3\ICATCDLL.dll', Binary was not built with debug information.
'tvctrlpt.exe': Loaded 'C:\Windows\System32\version.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Unloaded 'C:\Windows\System32\version.dll'
'tvctrlpt.exe': Loaded 'C:\PaperSecu\PaperHK.dll', Binary was not built with debug information.
'tvctrlpt.exe': Loaded 'C:\Windows\System32\winspool.drv', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\pcdrm\nscext2.dll', Exports loaded.
'tvctrlpt.exe': Unloaded 'C:\Windows\pcdrm\nscext2.dll'
'tvctrlpt.exe': Loaded 'C:\PaperSecu\secuutil.dll', Exports loaded.
'tvctrlpt.exe': Loaded 'C:\Windows\System32\version.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Unloaded 'C:\PaperSecu\secuutil.dll'
'tvctrlpt.exe': Unloaded 'C:\Windows\System32\version.dll'
'tvctrlpt.exe': Loaded 'C:\Windows\pcdrm\nscfa.dll', Binary was not built with debug information.
'tvctrlpt.exe': Loaded 'C:\Windows\System32\version.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Unloaded 'C:\Windows\pcdrm\nscfa.dll'
'tvctrlpt.exe': Unloaded 'C:\Windows\System32\version.dll'
'tvctrlpt.exe': Loaded 'C:\Windows\pcdrm\nsccor01.dll', Binary was not built with debug information.
'tvctrlpt.exe': Loaded 'C:\Windows\System32\shlwapi.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\System32\version.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\pcdrm\drmsso.dll', Exports loaded.
'tvctrlpt.exe': Loaded 'C:\Windows\System32\psapi.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Unloaded 'C:\Windows\pcdrm\drmsso.dll'
'tvctrlpt.exe': Unloaded 'C:\Windows\pcdrm\nsccor01.dll'
'tvctrlpt.exe': Loaded 'C:\Windows\pcdrm\nsccor03.dll', Binary was not built with debug information.
'tvctrlpt.exe': Loaded 'C:\Windows\System32\shell32.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\pcdrm\nfd01.dll', Exports loaded.
'tvctrlpt.exe': Loaded 'C:\Windows\System32\profapi.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\System32\imagehlp.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Unloaded 'C:\Windows\System32\imagehlp.dll'
'tvctrlpt.exe': Loaded 'C:\Windows\pcdrm\NSCCOR05.DLL', Binary was not built with debug information.
'tvctrlpt.exe': Unloaded 'C:\Windows\pcdrm\NSCCOR05.DLL'
'tvctrlpt.exe': Loaded 'C:\Windows\System32\f_im.dll', Binary was not built with debug information.
'tvctrlpt.exe': Loaded 'C:\Program Files\Fasoo DRM\f_sps.dll', Exports loaded.
'tvctrlpt.exe': Loaded 'C:\Windows\System32\imagehlp.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7600.16661_none_ebfb56996c72aefc\comctl32.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\System32\f_pbrc09.dll', Binary was not built with debug information.
'tvctrlpt.exe': Loaded 'C:\Windows\System32\dwmapi.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\System32\nlaapi.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\System32\mswsock.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\System32\dnsapi.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\System32\winrnr.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\System32\NapiNSP.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\System32\pnrpnsp.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Program Files\Bonjour\mdnsNSP.dll', Exports loaded.
'tvctrlpt.exe': Loaded 'C:\Windows\System32\FWPUCLNT.DLL', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\System32\rasadhlp.dll', Symbols loaded (source information stripped).
'tvctrlpt.exe': Loaded 'C:\Windows\System32\anywall3.dll', Exports loaded.
'tvctrlpt.exe': Loaded 'C:\Windows\System32\WSHTCPIP.DLL', Symbols loaded (source information stripped).