public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "dblaikie at gmail dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug c++/14998] GDB cannot handle pointer to member functions being encoded with DW_TAG_ptr_to_member_type Date: Mon, 07 Jan 2013 19:41:00 -0000 [thread overview] Message-ID: <bug-14998-4717-mjLtHNGBpy@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-14998-4717@http.sourceware.org/bugzilla/> http://sourceware.org/bugzilla/show_bug.cgi?id=14998 --- Comment #9 from David Blaikie <dblaikie at gmail dot com> 2013-01-07 19:41:03 UTC --- (In reply to comment #8) > (In reply to comment #7) > > The DWARF standard is a bit vague on this: > > > > "The pointer to member entry has a DW_AT_type attribute to describe the type of > > the class or structure member to which objects of this type may point." > > > > but it seems like if the DW_AT_type of a pointer-to-member variable "int > > foo::*x;" is simply "int", then the DW_AT_type of a pointer-to-member function > > "int (foo::*x)(float)" would be "int(float)". > > I searched the DWARF standard and didn't see anything requiring this. > However, it seems strange to emit the artificial parameter for a method > but not for a pointer-to-method. That's a fair point & at least convinces me to spend the time trying to get the extra artificial parameter from Clang. > Certainly doable in gdb, but I think it is nicer to agree on a single > standard interpretation and try to avoid this kind of adaptive behavior. Fair enough/agreed. Since I'm going to try to at least experiment with this (to verify that GDB will play nicely once it has the implicit first parameter) there's no real reason for GDB to be adaptive - once I've done the work I might as well just commit it to Clang & thus be backwards compatible with GDB versions & there's no real reason to rip it out again later. > > > I guess LINKAGE_NAME is DW_AT_MIPS_linkage_name? Though in any case a function > > pointer won't have a known/fixed name for the function, so I guess it's always > > 'zero'/always displayed? > > It seems to be a boolean flag (to my surprise, I didn't actually read > it closely the first time). > There's probably some way to arrange for this to work properly. > > Offhand I don't know why it is this way. It might just be so that people > can tell "what is really going on" -- but a flag would suffice for this. OK, sounds good. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
next prev parent reply other threads:[~2013-01-07 19:41 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-01-07 1:10 [Bug c++/14998] New: " dblaikie at gmail dot com 2013-01-07 15:41 ` [Bug c++/14998] " tromey at redhat dot com 2013-01-07 17:11 ` tromey at redhat dot com 2013-01-07 17:57 ` dblaikie at gmail dot com 2013-01-07 17:58 ` dblaikie at gmail dot com 2013-01-07 17:59 ` dblaikie at gmail dot com 2013-01-07 19:01 ` tromey at redhat dot com 2013-01-07 19:11 ` dblaikie at gmail dot com 2013-01-07 19:35 ` tromey at redhat dot com 2013-01-07 19:41 ` dblaikie at gmail dot com [this message] 2013-01-08 3:08 ` dblaikie at gmail dot com 2013-01-08 4:48 ` tromey at redhat dot com 2013-01-08 17:12 ` tromey at redhat dot com 2013-01-19 19:22 ` dblaikie at gmail dot com 2013-01-31 17:41 ` cvs-commit at gcc dot gnu.org 2013-01-31 17:42 ` tromey 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=bug-14998-4717-mjLtHNGBpy@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).