I know that there are many libraries that parse PDB files and allow extracting debug information from them.
For a project I am working on, I need to generate PDB files. Are there any publicly available libraries that can do that?
microsoft recently released some headers in github to help the clang / llvm toolset take a look Microsoft Pdb Information in GitHub
clang llvm codeview emission rfc mailing list thread
If you manage to produce CodeView info (which is partially documented/RE'd) or DWARF, you can try this project: https://github.com/rainers/cv2pdb