How to create pdb files when building a library using mingw?

I cross compile from linux to windows using mingw32 tools. I need to generate pdb files for debugging in windows. Is there any way to do this?

+6
source share
2 answers

this project gives you the ability to generate pdb, it works in most cases for debugging:

https://github.com/rainers/cv2pdb

More details can help with this post mortem debug post.

http://blog.morlad.at/blah/mingw_postmortem

+6
source

GCC / MinGW creates debugging information in the native format used by GNU GDB Debugger, Microsoft PDB format is not supported. So you can:

  • create a Windows application with MSVC

  • use the Windows version of GNU GDB

  • try converting debug information to PDB and use Microsoft debuggers but no mature solution
+3
source

Source: https://habr.com/ru/post/955560/


All Articles