rmflow
rmflow

Reputation: 4765

Debug program compiled in MS VC++ 2010 Express with gdb

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

Answers (1)

harper
harper

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

Related Questions