Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to generate pdb files while building library using mingw?

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?

like image 292
Manoj Hanamshet Avatar asked Oct 09 '13 10:10

Manoj Hanamshet


2 Answers

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

like image 129
Pierrot Avatar answered Oct 06 '22 01:10

Pierrot


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:

  1. build application on Windows with MSVC

  2. use Windows version of GNU GDB

  3. try to convert debug info to PDB and use Microsoft debuggers, but there is no mature solution
like image 37
vitalyster Avatar answered Oct 05 '22 23:10

vitalyster