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

Support call stacks for MinGW-w64 builds #15117

Merged

Conversation

HertzDevil
Copy link
Contributor

Introduces new methods for extracting COFF debug information from programs in the PE format, integrating them into Crystal's existing DWARF parsing functionality. Resolves part of #6170.

It is questionable whether reusing src/exception/call_stack/elf.cr for MinGW-w64 is appropriate, since nothing here is in the ELF format, but this PR tries to avoid moving existing code around, save for the old Exception::CallStack.setup_crash_handler as it remains the only common portion between MSVC and MinGW-w64.

@HertzDevil HertzDevil added kind:feature topic:stdlib:runtime platform:windows-gnu Windows support based on the MinGW-w64 toolchain + MSYS2 labels Oct 22, 2024
@straight-shoota straight-shoota added this to the 1.15.0 milestone Oct 23, 2024
@straight-shoota straight-shoota merged commit 454744a into crystal-lang:master Oct 24, 2024
66 checks passed
@HertzDevil HertzDevil deleted the feature/mingw-w64-backtrace branch October 24, 2024 10:32
CTC97 pushed a commit to CTC97/crystal that referenced this pull request Nov 9, 2024
Introduces new methods for extracting COFF debug information from programs in the PE format, integrating them into Crystal's existing DWARF parsing functionality. Resolves part of crystal-lang#6170.

It is questionable whether reusing `src/exception/call_stack/elf.cr` for MinGW-w64 is appropriate, since nothing here is in the ELF format, but this PR tries to avoid moving existing code around, save for the old `Exception::CallStack.setup_crash_handler` as it remains the only common portion between MSVC and MinGW-w64.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:feature platform:windows-gnu Windows support based on the MinGW-w64 toolchain + MSYS2 topic:stdlib:runtime
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants