public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/39706]  New: namespaces represented incorrectly in debug_pubnames
@ 2009-04-09 23:52 tromey at gcc dot gnu dot org
  2009-07-27 14:32 ` [Bug debug/39706] " dodji at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: tromey at gcc dot gnu dot org @ 2009-04-09 23:52 UTC (permalink / raw)
  To: gcc-bugs

Compile this with -g:

namespace x { int x; }
class y { public: static int x; };
int y::x;
int main() { return x::x; }

Now examine the debug_pubnames section with readelf.  I see:

    70                  main
    119                 x
    130                 y::x

However, I expected "x::x"; "y::x" seems correct.

The dwarf spec is a bit weird here:

>     In the case of the name of a function member or static data member
>     of a C++ structure, class or union, the name presented in the
>     .debug_pubnames section is not the simple name given by the
>     DW_AT_name attribute of the referenced debugging entry, but rather
>     the fully qualified name of the data or function member.

It doesn't mention namespaces.  However, this is not very useful;
and perhaps this text is not normative.


-- 
           Summary: namespaces represented incorrectly in debug_pubnames
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tromey at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39706


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-09-03 22:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-09 23:52 [Bug debug/39706] New: namespaces represented incorrectly in debug_pubnames tromey at gcc dot gnu dot org
2009-07-27 14:32 ` [Bug debug/39706] " dodji at gcc dot gnu dot org
2009-07-27 20:44 ` dodji at redhat dot com
2009-07-28 12:39 ` dodji at redhat dot com
2009-08-04 12:32 ` dodji at gcc dot gnu dot org
2009-08-04 12:49 ` dodji at gcc dot gnu dot org
2009-08-04 12:51 ` dodji at gcc dot gnu dot org
2009-08-04 16:59 ` dodji at gcc dot gnu dot org
2009-08-04 17:06 ` dodji at gcc dot gnu dot org
2009-09-03 22:57 ` pinskia at gcc dot gnu dot org

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).