how to generate pdb files while building library using mingw?

前端 未结 3 703
悲&欢浪女
悲&欢浪女 2021-01-04 02:57

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?

3条回答
  •  伪装坚强ぢ
    2021-01-04 03:42

    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

提交回复
热议问题