Skip to content
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

Add rudimentary support for DWARF5 #67

Merged
merged 1 commit into from
Oct 30, 2021
Merged

Add rudimentary support for DWARF5 #67

merged 1 commit into from
Oct 30, 2021

Conversation

dscho
Copy link
Contributor

@dscho dscho commented Oct 29, 2021

This allows cv2pdb to process executables produced by the mingw-w64 version of GCC v11.x. The symptoms of the fixed issue would look like this:

error: cannot add line number info to module

We will most likely have to run with this patch to allow building Git for Windows henceforth, as we use the mingw-w64 version of GCC provided by the MSYS2 project, and they recently upgraded to GCC v11.x (where it seems impossible to force an older DWARF version via -gdwarf-<version> -gstrict-dwarf).

This fixes git-for-windows/git#3488.

This allows `cv2pdb` to process executables produced by the mingw-w64
version of GCC v11.x.

The symptoms of the fixed issue would look like this:

	error: cannot add line number info to module

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@rainers
Copy link
Owner

rainers commented Oct 30, 2021

Thanks for your contribution. I'll have to trust you on this change, but I see that older DWARF versions should be unaffected.

@rainers rainers merged commit 9c0e83f into rainers:master Oct 30, 2021
@dscho dscho deleted the dwarf5 branch October 30, 2021 15:58
@dscho
Copy link
Contributor Author

dscho commented Oct 30, 2021

Heh, I had hoped that somebody more knowledgeable than I would double-check my work :-)

Having said that, I went by the official specs and verified that it works using a freshly-built git.exe, so I am reasonably confident that it's doing what it should be doing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

build-artifacts GitHub Actions pipeline broken
2 participants