Skip to content

lldb doesn't print enums #58492

Description

@artemmukhin
enum E1 { A, B }
enum E2 { A1 { x: i32, y: i32 }, B1(u8), C1 }
fn main() {
    let a = E1::A;
    let aa = E2::A1 { x: 42, y: 123 };
    let bb = E2::B1(10);
    let cc = E2::C1;
}

Run lldb (without pretty-printers, lldb-1000.0.38.2)

(lldb) p a
(main::E1) $0 = A
(lldb) p aa
(main::E2) $1 = {}
(lldb) p bb
(main::E2) $2 = {}
(lldb) p cc
(main::E2) $3 = {}

It affects both stable (1.32.0) and nightly (1.34.0) Rust toolchains.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)T-compilerRelevant to the compiler 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