Skip to content

Explain how to use gdb to debug the compiler #443

Open
@spastorino

Description

@spastorino

There was a discussion in Zulip about how to attach gdb to x.py.

@petrochenkov suggested running gdb --args ./build/x86_64-pc-windows-gnu/stage1/bin/rustc src/test/ui/name.rs, I think it would be great to have this explained on rustc-guide because it's a recurring question.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-contribution-workflowsArea: contribution workflowsA-debuggersArea: debuggers (lldb, gdb, WinDbg, etc.)A-devexArea: contributor developer experienceC-enhancementCategory: enhancementE-help-wantedCall for participation: extra help is wantedE-mediumDifficulty: might require some prior knowledge or code readingT-compilerRelevant to compiler teamT-libsRelevant to libs team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions