是否有可能加载不匹配的符号在Visual Studio? [英] Is it possible to load mismatched symbols in Visual Studio?

查看:158
本文介绍了是否有可能加载不匹配的符号在Visual Studio?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Windows转储(C code)以及相应的exe文件。不幸的是,我没有精确匹配.pdb文件,但我确实有包含完全相同的code刚刚建立在不同的时间.pdbs。在WinDbg中,我可以使用:

I've got a Windows minidump (C code) and a corresponding exe file. Unfortunately, I don't have the exact matching .pdb files, but I do have .pdbs that contain the exact same code just built at a different time. In Windbg, I can use:

.symopt+0x40

要告诉它加载任何东西,甚至不匹配的符号文件。这在这种特定情况下的伟大工程,我能得到一个正确的调用堆栈。我只是好奇,Visual Studio中是否有任何这样的功能。我们使用pretty每很多不同版本的VS这里,所以也无所谓它可能在感谢哪个版本。

To tell it to load anything, even mismatched symbol files. This works great in this particular instance, and I'm able to get a proper call stack. I'm just curious as to whether or not Visual Studio has any such feature. We use pretty much every different version of VS here, so it doesn't matter which version it might be in. Thanks.

推荐答案

有没有覆盖,但海报<一个href=\"http://stackoverflow.com/questions/744870/how-can-you-change-an-age-mismatched-pdb-to-match-properly\">this问题找到了一种方法来修改PDB文件,使他们的EXE匹配。

There is no override, but the poster to this question found a way to modify the PDB files to make them match the EXE.

由于在一个评论
  第一个答案,我检查了一个链接
  这本书的PDF文件无证
  Windows 2000的秘密:程序员
  食谱。而笔者进入
  关于PDB文件很详细
  格式。正如我以前说过,我有
  已加载的PDB成十六进制
  编辑和翻转周围的一些位
  出现,我所做的
  年龄/特征码匹配,但它并没有
  工作。那么,使用工具之后,
  从W2K秘密书爆炸
  在PDB进入包括流,我
  发现他们躲在另一
  参照年龄在流
  3 !!!!!!!有一次,我翻了一个作为
  那么,它在WinDbg中匹配了。

Thanks to one of the comments on the first answer, I checked out a link to the pdfs of the book "Undocumented Windows 2000 Secrets: A Programmers Cookbook". And the author goes into great detail about the pdb file format. As I said before, I had already loaded the pdb into a hex editor and flipped some bits around appearing that I made the age/signature match, but it didn't work. Well, after using the utility from the W2k secrets book to "explode" the pdb into the included streams, I found out that they hide another reference to the age in stream 3!!!!!!! Once I flipped that one as well, it matched up in windbg.

不知道,如果你想要去这么多麻烦,但它看起来像它可以做到的。如果这是生产支持那么它可能是值得的。

Not sure if you want to go to this much trouble, but it looks like it can be done. If this is for production support then it could be worth your while.

这篇关于是否有可能加载不匹配的符号在Visual Studio?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆