I am cross compiling from linux to windows using the mingw32 tools. I need to generate pdb files for debugging on windows. Is there a way to do this?
相关问题
- Sorting 3 numbers without branching [closed]
- How to compile C++ code in GDB?
- Why does const allow implicit conversion of refere
- How to know full paths to DLL's from .csproj f
- thread_local variables initialization
相关文章
- vs2017wpf项目引用dll的路径不正确的问题
- Class layout in C++: Why are members sometimes ord
- How to mock methods return object with deleted cop
- Which is the best way to multiply a large and spar
- C++ default constructor does not initialize pointe
- Selecting only the first few characters in a strin
- What exactly do pointers store? (C++)
- Converting glm::lookat matrix to quaternion and ba
this project gives you the ability to generate the pdb, it works in most cases for debuging :
https://github.com/rainers/cv2pdb
more details can help in this post about post mortem debugging
http://blog.morlad.at/blah/mingw_postmortem
GCC/MinGW produces debug info in its own format used by GNU GDB Debugger, there is no support for Microsoft PDB format. So you can:
build application on Windows with MSVC
use Windows version of GNU GDB
Another option is to cross-compile using llvm/clang instead of mingw, since llvm can now produce .pdb files. http://blog.llvm.org/2017/08/llvm-on-windows-now-supports-pdb-debug.html
That said, I just use cv2pdb. It doesn't translate everything correctly, but it's good enough.