public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "dxu at dxuuu dot xyz" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug rust/26202] New: Support calling methods on types Date: Sat, 04 Jul 2020 07:32:08 +0000 [thread overview] Message-ID: <bug-26202-4717@http.sourceware.org/bugzilla/> (raw) https://sourceware.org/bugzilla/show_bug.cgi?id=26202 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 = vec!(1,2,3); (gdb) n 3 println!("{:?}", v); (gdb) p v.len() Could not find function named 'alloc::vec::Vec<i32>::len' It works for vectors in C++: Temporary breakpoint 1, main () at main.cpp:4 4 int main() { (gdb) n 5 std::vector<int> v{1,2,3}; (gdb) n 6 for (int i : v) { (gdb) p v.size() $1 = 3 -- You are receiving this mail because: You are on the CC list for the bug.
next reply other threads:[~2020-07-04 7:32 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-07-04 7:32 dxu at dxuuu dot xyz [this message] 2020-07-04 17:19 ` [Bug rust/26202] " tromey at sourceware dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-26202-4717@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).