Skip to content
New issue

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

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

Already on GitHub? # to your account

Dwarf: improve x86_64 backend debug info #17970

Merged
merged 1 commit into from
Nov 12, 2023

Conversation

jacobly0
Copy link
Member

$ ./zig run repro.zig
panic: crash
Unwind error at address `exe:0x80364c0` (error.MissingFDE), trace may be incomplete

repro.zig:2:5: 0x8000cf3 in main (repro.zig)
    @panic("crash");
    ^
lib/std/start.zig:575:22: 0x8000697 in posixCallMainAndExit (repro.zig)
            root.main();
                     ^
lib/std/start.zig:253:5: 0x800001a in _start (repro.zig)
    asm volatile (switch (native_arch) {
    ^
Aborted (core dumped)

Closes #17811

@jacobly0 jacobly0 requested a review from kubkon November 11, 2023 21:12
@andrewrk andrewrk merged commit 2eeb735 into ziglang:master Nov 12, 2023
10 checks passed
@jacobly0 jacobly0 deleted the x86_64-dwarf branch November 13, 2023 19:05
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bad dwarf debug info when using self-hosted x86 backend
2 participants