This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug rust/21178] New: add xmethod support for rust
- From: "tromey at sourceware dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 17 Feb 2017 14:48:34 +0000
- Subject: [Bug rust/21178] New: add xmethod support for rust
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=21178
Bug ID: 21178
Summary: add xmethod support for rust
Product: gdb
Version: HEAD
Status: NEW
Severity: enhancement
Priority: P2
Component: rust
Assignee: unassigned at sourceware dot org
Reporter: tromey at sourceware dot org
Target Milestone: ---
Currently it's difficult to get an individual element from
a Vec in Rust. Example program:
fn main() {
let x = vec!(1,2,3,4);
println!("{}", x[2]);
}
(gdb) p x
$1 = Vec<i32>(len: 4, cap: 4) = {1, 2, 3, 4}
(gdb) p x[0]
Cannot subscript non-array type
Maybe xmethods or something similar could be added to the rust language code
in gdb.
--
You are receiving this mail because:
You are on the CC list for the bug.