New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Studio still says "Source Not Available" #50

Daniel15 opened this Issue Feb 4, 2019 · 3 comments


None yet
2 participants
Copy link

Daniel15 commented Feb 4, 2019

Hi! I'm trying to use your app to get debugging symbols for the GPGME C library, so I can debug some issues with my usage of it from C#.

I've compiled my own version of libgpgme-11.dll with debug symbols intact, and have used cv2pdb to generate a PDB. Visual Studio says:

Loaded 'C:\Program Files (x86)\GnuPG\bin\libgpgme-11.dll'. Symbols loaded.

Which makes me think that it has found the PDB file.

However, It still says:

Source Not Available
Source information is missing from the debug information for this module

when I try to debug the library:

Do you know what could be causing it?

I've attached the original DLL, DLL output by cv2pdb, and the PDB file here:


This comment has been minimized.

Copy link

rainers commented Feb 5, 2019

There is only debug information for the mingw runtime in the original DLL. You can check by dumping the output of objdump.exe -W libgpgme-11-original.dll and searching for DW_TAG_compile_unit.

I guess something went wrong when building a debug version of that DLL.


This comment has been minimized.

Copy link

Daniel15 commented Feb 5, 2019

Thanks for your reply, @rainers! I'm following up on the GPG mailing list to determine what's up:

I guess this is not a cv2pdb issue so I'm going to close this, but I'll reopen it if I still have issues once I figure out how to get the proper symbols in the DLL.

@Daniel15 Daniel15 closed this Feb 5, 2019


This comment has been minimized.

Copy link

Daniel15 commented Feb 6, 2019

I worked this out. The build process for libgpgme didn't properly pass through the CFLAGS and CXXFLAGS I specified. I manually modified the Makefile and added -gdwarf -O0, now the debug symbols are working:

Thank you for the useful tool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment