windbg加载符号表,有时候遇到符号表不对应的情况。有时候你是因为重新编译了一下,代码并没有修改。此时由于pdb变化,而之前的调试的pdb没有保留,可能不得不重新替换文件进行重新调试。大可不必。
可以使用如下的命令为模块加载一个符号不对应的模块:
/i
Ignores a mismatch in the .pdb file versions. (If you do not include this parameter, the debugger does not load mismatched symbol files.) When you use /i, /f is used also, even if you do not explicitly specify it.
例如
.reload /i mytest.dll
就可以为你的mytest.dll指定一个不匹配的mytest.pdb的符号表。
注意realod后的mytest.dll必须带上.dll才行。