This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug rust/21763] New: gdb.lookup_type fails for rust


https://sourceware.org/bugzilla/show_bug.cgi?id=21763

            Bug ID: 21763
           Summary: gdb.lookup_type fails for rust
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: rust
          Assignee: unassigned at sourceware dot org
          Reporter: tromey at sourceware dot org
  Target Milestone: ---

The Python API gdb.lookup_type fails for Rust.
>From jrmuizel:

    struct Foo {
        g: u32,
           h: u32
    }

    fn main() {
        let f = Foo{ g: 8, h: 9 };
        println!("Hello, world!");
    }

    gives:

    (gdb) python print(gdb.lookup_type(str(gdb.parse_and_eval("f").type)))
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    gdb.error: No type named tmp::Foo.
    Error while executing Python code.
    (gdb)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]