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

* [Bug debug/39706] namespaces represented incorrectly in debug_pubnames
  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 ` dodji at gcc dot gnu dot org
  2009-07-27 20:44 ` dodji at redhat dot com
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-07-27 14:32 UTC (permalink / raw)
  To: gcc-bugs



-- 

dodji at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |dodji at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-07-27 14:32:12
               date|                            |


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


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

* [Bug debug/39706] namespaces represented incorrectly in debug_pubnames
  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
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dodji at redhat dot com @ 2009-07-27 20:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dodji at gcc dot gnu dot org  2009-07-27 20:43 -------
Subject: Re:   New: namespaces represented incorrectly in
 debug_pubnames

I am regression testing this patchlet that seems to fix the problem in
trunk ...


------- Comment #2 from dodji at gcc dot gnu dot org  2009-07-27 20:43 -------
Created an attachment (id=18260)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18260&action=view)


-- 


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


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

* [Bug debug/39706] namespaces represented incorrectly in debug_pubnames
  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
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dodji at redhat dot com @ 2009-07-28 12:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from dodji at gcc dot gnu dot org  2009-07-28 12:39 -------
Subject: Re:   New: namespaces represented incorrectly in
 debug_pubnames

Patch submitted to http://gcc.gnu.org/ml/gcc-patches/2009-07/msg01579.html


-- 


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


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

* [Bug debug/39706] namespaces represented incorrectly in debug_pubnames
  2009-04-09 23:52 [Bug debug/39706] New: namespaces represented incorrectly in debug_pubnames tromey at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  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
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-08-04 12:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from dodji at gcc dot gnu dot org  2009-08-04 12:27 -------
Subject: Bug 39706

Author: dodji
Date: Tue Aug  4 12:26:01 2009
New Revision: 150452

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150452
Log:
2009-08-04  Dodji Seketeli  <dodji@redhat.com>

gcc/cp/ChangeLog:
        PR debug/39706
        * error.c (lang_decl_name): Print qualified names for decls
        in  namespace scope.

gcc/testsuite/ChangeLog:
        PR debug/39706
        * g++.dg/debug/dwarf2/pubnames-1.C: New test.


Added:
    trunk/gcc/testsuite/g++.dg/debug/dwarf2/pubnames-1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/error.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug debug/39706] namespaces represented incorrectly in debug_pubnames
  2009-04-09 23:52 [Bug debug/39706] New: namespaces represented incorrectly in debug_pubnames tromey at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  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
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-08-04 12:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from dodji at gcc dot gnu dot org  2009-08-04 12:31 -------
Fixed in 4.4 and 4.5. Waiting for 4.3 to unfreeze ...


-- 


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


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

* [Bug debug/39706] namespaces represented incorrectly in debug_pubnames
  2009-04-09 23:52 [Bug debug/39706] New: namespaces represented incorrectly in debug_pubnames tromey at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-08-04 12:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from dodji at gcc dot gnu dot org  2009-08-04 12:37 -------
Subject: Bug 39706

Author: dodji
Date: Tue Aug  4 12:28:27 2009
New Revision: 150453

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150453
Log:
2009-08-04  Dodji Seketeli  <dodji@redhat.com>

gcc/cp/ChangeLog:
        PR debug/39706
        * error.c (lang_decl_name): Print qualified names for decls
        in  namespace scope.

gcc/testsuite/ChangeLog:
        PR debug/39706
        * g++.dg/debug/dwarf2/pubnames-1.C: New test.


Added:
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/debug/dwarf2/pubnames-1.C
Modified:
    branches/gcc-4_4-branch/gcc/cp/ChangeLog
    branches/gcc-4_4-branch/gcc/cp/error.c
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug debug/39706] namespaces represented incorrectly in debug_pubnames
  2009-04-09 23:52 [Bug debug/39706] New: namespaces represented incorrectly in debug_pubnames tromey at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  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
  8 siblings, 0 replies; 10+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-08-04 16:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from dodji at gcc dot gnu dot org  2009-08-04 16:59 -------
Subject: Bug 39706

Author: dodji
Date: Tue Aug  4 16:59:11 2009
New Revision: 150462

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150462
Log:
2009-08-04  Dodji Seketeli  <dodji@redhat.com>

gcc/cp/ChangeLog:
        PR debug/39706
        * error.c (lang_decl_name): Print qualified names for decls
        in  namespace scope.

gcc/testsuite/ChangeLog:
        PR debug/39706
        * g++.dg/debug/dwarf2/pubnames-1.C: New test.


Added:
    branches/gcc-4_3-branch/gcc/testsuite/g++.dg/debug/dwarf2/pubnames-1.C
Modified:
    branches/gcc-4_3-branch/gcc/cp/ChangeLog
    branches/gcc-4_3-branch/gcc/cp/error.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug debug/39706] namespaces represented incorrectly in debug_pubnames
  2009-04-09 23:52 [Bug debug/39706] New: namespaces represented incorrectly in debug_pubnames tromey at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  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
  8 siblings, 0 replies; 10+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-08-04 17:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from dodji at gcc dot gnu dot org  2009-08-04 17:06 -------
Fixed in 4.3 as well.


-- 

dodji at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug debug/39706] namespaces represented incorrectly in debug_pubnames
  2009-04-09 23:52 [Bug debug/39706] New: namespaces represented incorrectly in debug_pubnames tromey at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2009-08-04 17:06 ` dodji at gcc dot gnu dot org
@ 2009-09-03 22:57 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-09-03 22:57 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.4.1
      Known to work|                            |4.3.5 4.4.2
   Target Milestone|---                         |4.3.5


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