This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug rust/21763] New: gdb.lookup_type fails for rust
- From: "tromey at sourceware dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 12 Jul 2017 20:09:00 +0000
- Subject: [Bug rust/21763] New: gdb.lookup_type fails for rust
- Auto-submitted: auto-generated
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.