public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "k04jg02 at gmail dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug c++/11526] New: GDB thinks every type is a a possibility for tab completion on template arguments Date: Wed, 21 Apr 2010 15:15:00 -0000 [thread overview] Message-ID: <20100421151540.11526.k04jg02@gmail.com> (raw) When debugging with GDB, I had a templated member function on an object called 'segment'. I wanted to run a specific instantiation of this function, so I wrote: print segment.dereference< And then pressed TAB. GDB promptly responded: Display all 15226 possibilities? (y or n) I believe this is the total number of types present in the binary. For most programs this list is huge, which makes it impractical for TAB completion. However, the vast majority of these types won't work because instantiations of this template were only made for a few types when g++ compiled the app, because only a few specific instantiations exist in the source. It would be nice if GDB only listed types for which there are actually instantiations of the template in the binary, both to make the list shorter and because these are the only ones that will succeed. Typing the types manually isn't even a great workaround because often times template parameters are hugely nested types several namespaces deep and often with their own template parameters. -- Summary: GDB thinks every type is a a possibility for tab completion on template arguments Product: gdb Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at sourceware dot org ReportedBy: k04jg02 at gmail dot com CC: gdb-prs at sourceware dot org http://sourceware.org/bugzilla/show_bug.cgi?id=11526 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
next reply other threads:[~2010-04-21 15:15 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-04-21 15:15 k04jg02 at gmail dot com [this message] 2010-04-21 17:30 ` [Bug c++/11526] " k04jg02 at gmail dot com 2010-04-29 20:59 ` swagiaal at redhat dot com
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=20100421151540.11526.k04jg02@gmail.com \ --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).