Reputation: 4765
Is it possible to build executable with Microsoft Visual C++ Express, so it could be debugged with gdb?
I tried C7 compatible /Z7
compiler option with /debug
linker option, but resulting .pdb
file is not recognized by gdb:
(gdb) symbol-file HelloWorldVC.pdb
`HelloWorldVC.pdb': can't read symbols: File format not recognized.
Upvotes: 12
Views: 5008
Reputation: 13690
GDB has a different debug format than Microsoft's compiler. Indeed the PDB format is not documented. So you can't use the debug information generated by a Microsoft compiler with GDB.
Honestly I can't find any benefit of GDB that I would use it instead of the debugger of Microsoft Visual Studio.
Upvotes: 2