Tool to find if dll (or) exe and PDB file match [closed]
Asked Answered
R

4

23

Is there any tool to check if a DLL and PDB match? I need to debug a process and I can't afford to use the wrong PDB and start the process all over again.

Rainier answered 30/4, 2010 at 8:50 Comment(1)
The Windows debuggers (VS and windbg) will check whether the DLL and PDB match and will refuse to load a mismatched PDB. Therefore this is a non-issue.Estes
R
18

Found that chkmatch tool can find this.Check this out..

Rainier answered 4/5, 2010 at 5:49 Comment(4)
this tool looks outdatedLevenson
@denfromufa - can you expand your comment to indicate what you mean - why will this tool not perform the function given. Saying it's outdated doesn't tell us what is wrong.Xenophanes
ChkMatch has not been updated since 2004. This is not in itself bad, but it has a serious bug which causes it to report PDB mismatches when there is no mismatch. The problem is that there are two "ages" stored in the PDB and ChkMatch checks the wrong one. This usually works (which is why the tool shipped with this bug) but if a PDB has been source indexed then a mismatch will be reported, even though there is no mismatch. See this comment on my blog for details: randomascii.wordpress.com/2011/11/11/…Estes
only working for c++ binaries, not working for c# binariesPolyandrist
L
6

This is a good article describing tool symchk.exe:

You can use WINPDB for this: turn on symbol diagnostic messages, then reload your symbols:

!sym noisy
.reload -f your.dll

the output shows which PDB file locations are being tried, and there will be a warning if there is a mismatch

Levenson answered 2/7, 2014 at 11:40 Comment(0)
X
2

There is a MSDN sample tool called DIA2Dump that should be able to dump out the contents of a PDB. You should be able to use this construct script that determines the correct source location.

Or you could set up your own source server to handle this.

Xenophanes answered 30/4, 2010 at 8:57 Comment(0)
W
1

I needed the same kind of tool and I decided to write my own. DebugSignaturesComparer

There's both CLI and GUI version available.

Womanhood answered 4/7, 2020 at 21:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.