I'm trying to step into MFC source code while debugging. However, Visual Studio apparently has problems with loading the appropriate symbols:
C:\WINDOWS\symbols\dll\mfc100.i386.pdb: PDB does not match image.
I checked other questions on SO, often it is recommended to enable "symbol servers". This is not helping though, because it only seems to download a minimal PDB file (~2 MB) instead of a PDB file that actually enables you to step into the source (~20 MB).
According to Cannot load symbols for mfc100.dll I should download a full symbol package from http://msdn.microsoft.com/en-us/windows/hardware/gg463028. I did that, but it doesn't help either because this package does not actually include symbols for mfc100.dll at all.
Next thing I tried is copying PDB files from another system. On my local Win7 OS I have a mfc100.i386.pdb from 2011-06-10 (24.708 KB). On the system I debug I have mfc100.i386.pdb from 2010-03-18 (23.732 KB). Both do "not match image" though.
So where should I get the correct and full symbol files from?
OS: Windows 8 x86. Visual Studio 2013 with VS 2010 C++ project. mfc100.dll version: 10.00.40219.01
WinDbg !sym noisy
output:
************* Symbol Path validation summary **************
Response Time (ms) Location
OK C:\Windows\symbols\dll
DBGHELP: Symbol Search Path: c:\windows\symbols\dll
DBGHELP: Symbol Search Path: c:\windows\symbols\dll
0:000> .reload
Reloading current modules
DBGHELP: c:\windows\symbols\dll\mfc100.i386.pdb - mismatched pdb
DBGHELP: c:\windows\symbols\dll\dll\mfc100.i386.pdb - file not found
DBGHELP: c:\windows\symbols\dll\symbols\dll\mfc100.i386.pdb - file not found
DBGHELP: C:\WINDOWS\SYSTEM32\mfc100.i386.pdb - file not found
DBGHELP: mfc100.i386.pdb - file not found
DBGHELP: Couldn't load mismatched pdb for C:\WINDOWS\SYSTEM32\mfc100.dll
*** ERROR: Module load completed but symbols could not be loaded for C:\WINDOWS\SYSTEM32\mfc100.dll
DBGHELP: mfc100 - no symbols loaded
************* Symbol Loading Error Summary **************
Module name Error
mfc100 PDB not found : c:\windows\symbols\dll\symbols\dll\mfc100.i386.pdb
Unable to locate the .pdb file in this location