Given we compile and ship our own Ruby version to run Puppet on Windows, it would be extremely helpful to also build symbols that can be used with Windbg.
While we do not need to release these, they should be archived alongside the binaries that we ship in the even that we need to analyze a .dmp crash file.
From what I understand, we compile with mingw so simply adding -g will not be sufficient to produce symbols consumable by Windbg.
A cursory look shows that there are 2 potential solutions here:
- Use the cv2pdb tool to convert DWARF info into PDB symbols that Windbg can use – see http://blog.morlad.at/blah/mingw_postmortem
- Compile with COFF output that Windbg has some limited support for (quick searches show this to be problematic) – http://stackoverflow.com/questions/1593117/extract-debugging-information-from-a-msys-mingw-gcc-built-dll-using-rebase-exe