From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 30F903870860; Sat, 4 Jul 2020 07:32:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 30F903870860 From: "dxu at dxuuu dot xyz" To: gdb-prs@sourceware.org Subject: [Bug rust/26202] New: Support calling methods on types Date: Sat, 04 Jul 2020 07:32:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: rust X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dxu at dxuuu dot xyz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jul 2020 07:32:09 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26202 Bug ID: 26202 Summary: Support calling methods on types Product: gdb Version: HEAD Status: UNCONFIRMED Severity: normal Priority: P2 Component: rust Assignee: unassigned at sourceware dot org Reporter: dxu at dxuuu dot xyz Target Milestone: --- For example, calling `Vec::len()` fails: Breakpoint 1, rust_debug::foo () at src/main.rs:2 2 let v =3D vec!(1,2,3); (gdb) n 3 println!("{:?}", v); (gdb) p v.len() Could not find function named 'alloc::vec::Vec::len' It works for vectors in C++: Temporary breakpoint 1, main () at main.cpp:4 4 int main() { (gdb) n 5 std::vector v{1,2,3}; (gdb) n 6 for (int i : v) { (gdb) p v.size() $1 =3D 3 --=20 You are receiving this mail because: You are on the CC list for the bug.=