Skip to content

Possible regression with rust_panic being mangled #140821

Open
@Qwinci

Description

@Qwinci

I think this pr #127173 changed rust_panic to be mangled which breaks gdb breaking on it with rust_panic name. The comment in

/// An unmangled function (through `rustc_std_internal_symbol`) on which to slap
says that it should be unmangled, likely #[no_mangle] should be added to it or stabilize some other name for it as else you have to rely on the internal mangled name __rustc::rust_panic in e.g. Intellij Rust plugin or other things that want to add a breakpoint to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-discussionCategory: Discussion or questions that doesn't represent real issues.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-libsRelevant to the library team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions