C++ - 是否有任何命令像 addr2line 在 Windows 上
C++ - Is there any command likes addr2line on Windows
如果Windows应用程序在没有pdb的情况下在用户设备上崩溃,它将产生如下调用堆栈:
TestGame 0x000000003f790000 + 1c0c9f1
TestGame 0x000000003f790000 + 4b8a97c
TestGame 0x000000003f790000 + 4b8a4f1
TestGame 0x000000003f790000 + 3608413
TestGame 0x000000003f790000 + 3630e94
TestGame 0x000000003f790000 + 413a33e
TestGame 0x000000003f790000 + 4151d46
TestGame 0x000000003f790000 + 149c9e6
TestGame 0x000000003f790000 + 149cc90
TestGame 0x000000003f790000 + 419cddd
TestGame 0x000000003f790000 + 41ab698
TestGame 0x000000003f790000 + 3a909df
TestGame 0x000000003f790000 + 3a999ff
TestGame 0x000000003f790000 + 38fd369
TestGame 0x000000003f790000 + 338688
TestGame 0x000000003f790000 + 34827c
TestGame 0x000000003f790000 + 3482da
TestGame 0x000000003f790000 + 355e16
TestGame 0x000000003f790000 + 5169f2e
kernel32 0x0000000076ec0000 + 159cd
ntdll 0x0000000076fe0000 + 5383d
但我有.开发设备上的 PDB 文件,所以我想要地址源行通过 ..PDB。我知道一个命令addr2line
可以在 Linux 上通过 .so 文件寻址行,我想知道是否有像 Windows 上addr2line
这样的命令。
Open TestGame.exe 在windbg中,你需要完全相同的二进制文件。中断执行。加载该版本的.pdb。运行以下命令:
ln TestGame.exe+0x1c0c9f1
我碰巧找到了这个:https://drmemory.org/page_symquery.html如果您没有获得模块基址,请尝试 VS' dumpbin.exe/headers xxx.exe 来获取图像基。
相关文章:
- 在VS代码中交叉编译Windows与Linux上的MinGW的SDL程序
- 在Linux for Windows上编译C++代码时出错
- 在Windows上用C++裁剪HBITMAP
- C++ Windows 驱动程序MSB3030无法复制该文件,因为它找不到
- 如何加载(或映射)文件部分的最大大小,但适合在Windows上的RAM
- std::threads可以从Windows DLL中的全局变量创建/销毁吗?
- 当我编译webrtc服务器时,Windows上只支持clang-cl
- 为什么在Windows上的VS 2019和Clang 9中"size_t"在没有标题的情况下工作
- Windows/Cygwin - 不能使用 pybind11 - 犯错误
- Windows 10-使用gtkmm-3.0库和g++[包括再现]的分段故障
- 在Windows中以.exe的形式运行c++
- 为什么包含windows.h会产生语法错误,从而阻止类的实例化?(C2146,C2065)
- 无法在windows控制台中为C++程序提供必要的输入
- 在Windows中查找扬声器输出的当前音量级别
- Windows.h与GLFW.h的接口
- 在 Windows 上,是否可以让 dll 在不使用 PATH 环境变量的情况下在另一个文件夹中查找依赖项?
- 在Linux和C++中的Windows上,散列字符串值会产生不同的输出
- Active Directory:从网络服务帐户下运行的Windows服务调用ADsOpenObject时失败
- c++17文件系统::recursive_directory迭代器()在mac上没有给出这样的目录,但在windows上
- C++ - 是否有任何命令像 addr2line 在 Windows 上