public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/41130]  New: GCC should emit an index of publicly named entities
@ 2009-08-20 12:44 dodji at gcc dot gnu dot org
  2009-08-20 12:45 ` [Bug debug/41130] " dodji at gcc dot gnu dot org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-08-20 12:44 UTC (permalink / raw)
  To: gcc-bugs

A somewhat detailed explanation of the needs and possible solution is available
at http://gcc.gnu.org/wiki/DebugGNUIndexSection .

It was posted for discussion to
http://sourceware.org/ml/archer/2009-q3/msg00105.html .


-- 
           Summary: GCC should emit an index of publicly named entities
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: dodji at gcc dot gnu dot org
        ReportedBy: dodji at gcc dot gnu dot org


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


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

* [Bug debug/41130] GCC should emit an index of publicly named entities
  2009-08-20 12:44 [Bug debug/41130] New: GCC should emit an index of publicly named entities dodji at gcc dot gnu dot org
@ 2009-08-20 12:45 ` dodji at gcc dot gnu dot org
  2009-08-20 12:45 ` dodji at gcc dot gnu dot org
                   ` (15 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-08-20 12:45 UTC (permalink / raw)
  To: gcc-bugs



-- 

dodji at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement


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


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

* [Bug debug/41130] GCC should emit an index of publicly named entities
  2009-08-20 12:44 [Bug debug/41130] New: GCC should emit an index of publicly named entities dodji at gcc dot gnu dot org
  2009-08-20 12:45 ` [Bug debug/41130] " dodji at gcc dot gnu dot org
@ 2009-08-20 12:45 ` dodji at gcc dot gnu dot org
  2009-08-20 14:42 ` dodji at gcc dot gnu dot org
                   ` (14 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-08-20 12:45 UTC (permalink / raw)
  To: gcc-bugs



-- 

dodji at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-08-20 12:45:00
               date|                            |


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


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

* [Bug debug/41130] GCC should emit an index of publicly named entities
  2009-08-20 12:44 [Bug debug/41130] New: GCC should emit an index of publicly named entities dodji at gcc dot gnu dot org
  2009-08-20 12:45 ` [Bug debug/41130] " dodji at gcc dot gnu dot org
  2009-08-20 12:45 ` dodji at gcc dot gnu dot org
@ 2009-08-20 14:42 ` dodji at gcc dot gnu dot org
  2009-08-24 21:41 ` dodji at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-08-20 14:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dodji at gcc dot gnu dot org  2009-08-20 14:42 -------
Created an attachment (id=18404)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18404&action=view)
First shot implementation

Implements the .debug_gnu_index section. It fully implements the proposal,
modulo the possible bugs.
For now, .debug_pubtypes and .debug_pubnames are kept around.
It patch doesn't contain any test yet. I'll update it soon with some tests.


-- 


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


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

* [Bug debug/41130] GCC should emit an index of publicly named entities
  2009-08-20 12:44 [Bug debug/41130] New: GCC should emit an index of publicly named entities dodji at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2009-08-20 14:42 ` dodji at gcc dot gnu dot org
@ 2009-08-24 21:41 ` dodji at gcc dot gnu dot org
  2009-08-24 21:42 ` dodji at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-08-24 21:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from dodji at gcc dot gnu dot org  2009-08-24 21:40 -------
Created an attachment (id=18420)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18420&action=view)
WIP with test

This version fixes a bug in gcc that was preventing it to emit DWARFs for a
typedefs enclosed in a namespace, if said namespace contain only typedefs.
As a matter of fact, the exemple accompanying the patch shows what's supported
now. Find attached below the generated assembly fo the exemple in the patch.


-- 

dodji at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #18404|0                           |1
        is obsolete|                            |


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


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

* [Bug debug/41130] GCC should emit an index of publicly named entities
  2009-08-20 12:44 [Bug debug/41130] New: GCC should emit an index of publicly named entities dodji at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2009-08-24 21:41 ` dodji at gcc dot gnu dot org
@ 2009-08-24 21:42 ` dodji at gcc dot gnu dot org
  2009-08-27  9:31 ` dodji at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-08-24 21:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from dodji at gcc dot gnu dot org  2009-08-24 21:42 -------
Created an attachment (id=18421)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18421&action=view)
Generated assembly for previous test

Assembly generated for the test in attachment #18420


-- 


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


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

* [Bug debug/41130] GCC should emit an index of publicly named entities
  2009-08-20 12:44 [Bug debug/41130] New: GCC should emit an index of publicly named entities dodji at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2009-08-24 21:42 ` dodji at gcc dot gnu dot org
@ 2009-08-27  9:31 ` dodji at gcc dot gnu dot org
  2009-08-27  9:33 ` dodji at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-08-27  9:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from dodji at gcc dot gnu dot org  2009-08-27 09:31 -------
Created an attachment (id=18434)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18434&action=view)
Updated patch

This patch removes the addition fix that was carried by previous patch as that
fix was pushed upstream, independently as PR debug/41770 .
Adjust tests to pass regtests.


-- 

dodji at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #18420|0                           |1
        is obsolete|                            |


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


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

* [Bug debug/41130] GCC should emit an index of publicly named entities
  2009-08-20 12:44 [Bug debug/41130] New: GCC should emit an index of publicly named entities dodji at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2009-08-27  9:31 ` dodji at gcc dot gnu dot org
@ 2009-08-27  9:33 ` dodji at gcc dot gnu dot org
  2009-09-29 20:04 ` tromey at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-08-27  9:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from dodji at gcc dot gnu dot org  2009-08-27 09:33 -------
Created an attachment (id=18435)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18435&action=view)
Oops.

Okay, this is the patch I wanted to attach. Not #18434. So the previous comment
applies to this entry.


-- 

dodji at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #18434|0                           |1
        is obsolete|                            |


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


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

* [Bug debug/41130] GCC should emit an index of publicly named entities
  2009-08-20 12:44 [Bug debug/41130] New: GCC should emit an index of publicly named entities dodji at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2009-08-27  9:33 ` dodji at gcc dot gnu dot org
@ 2009-09-29 20:04 ` tromey at gcc dot gnu dot org
  2009-11-19 16:30 ` tromey at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: tromey at gcc dot gnu dot org @ 2009-09-29 20:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from tromey at gcc dot gnu dot org  2009-09-29 20:03 -------
*** Bug 39708 has been marked as a duplicate of this bug. ***


-- 


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


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

* [Bug debug/41130] GCC should emit an index of publicly named entities
  2009-08-20 12:44 [Bug debug/41130] New: GCC should emit an index of publicly named entities dodji at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2009-09-29 20:04 ` tromey at gcc dot gnu dot org
@ 2009-11-19 16:30 ` tromey at gcc dot gnu dot org
  2009-11-19 16:46 ` tromey at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: tromey at gcc dot gnu dot org @ 2009-11-19 16:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from tromey at gcc dot gnu dot org  2009-11-19 16:30 -------
Created an attachment (id=19055)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19055&action=view)
modified patch

I've slightly updated the patch to handle non-public entities
as well.


-- 


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


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

* [Bug debug/41130] GCC should emit an index of publicly named entities
  2009-08-20 12:44 [Bug debug/41130] New: GCC should emit an index of publicly named entities dodji at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2009-11-19 16:30 ` tromey at gcc dot gnu dot org
@ 2009-11-19 16:46 ` tromey at gcc dot gnu dot org
  2009-12-02 19:40 ` tromey at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: tromey at gcc dot gnu dot org @ 2009-11-19 16:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from tromey at gcc dot gnu dot org  2009-11-19 16:45 -------
Created an attachment (id=19056)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19056&action=view)
patch for readelf

This patch modifies the binutils readelf utility to
dump the new section.


-- 


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


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

* [Bug debug/41130] GCC should emit an index of publicly named entities
  2009-08-20 12:44 [Bug debug/41130] New: GCC should emit an index of publicly named entities dodji at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2009-11-19 16:46 ` tromey at gcc dot gnu dot org
@ 2009-12-02 19:40 ` tromey at gcc dot gnu dot org
  2009-12-03 18:08 ` tromey at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: tromey at gcc dot gnu dot org @ 2009-12-02 19:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from tromey at gcc dot gnu dot org  2009-12-02 19:40 -------
Created an attachment (id=19214)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19214&action=view)
patch for readelf

This is an updated readelf patch.
Now "readelf -wI" works properly.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #19056|0                           |1
        is obsolete|                            |


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


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

* [Bug debug/41130] GCC should emit an index of publicly named entities
  2009-08-20 12:44 [Bug debug/41130] New: GCC should emit an index of publicly named entities dodji at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2009-12-02 19:40 ` tromey at gcc dot gnu dot org
@ 2009-12-03 18:08 ` tromey at gcc dot gnu dot org
  2009-12-03 18:10 ` tromey at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: tromey at gcc dot gnu dot org @ 2009-12-03 18:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from tromey at gcc dot gnu dot org  2009-12-03 18:08 -------
Created an attachment (id=19218)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19218&action=view)
updated gcc patch to put the CU's language in the new section


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #19055|0                           |1
        is obsolete|                            |


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


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

* [Bug debug/41130] GCC should emit an index of publicly named entities
  2009-08-20 12:44 [Bug debug/41130] New: GCC should emit an index of publicly named entities dodji at gcc dot gnu dot org
                   ` (11 preceding siblings ...)
  2009-12-03 18:08 ` tromey at gcc dot gnu dot org
@ 2009-12-03 18:10 ` tromey at gcc dot gnu dot org
  2009-12-03 18:16 ` tromey at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: tromey at gcc dot gnu dot org @ 2009-12-03 18:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from tromey at gcc dot gnu dot org  2009-12-03 18:09 -------
Created an attachment (id=19219)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19219&action=view)
updated binutils patch to account for language in new index


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #19214|0                           |1
        is obsolete|                            |


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


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

* [Bug debug/41130] GCC should emit an index of publicly named entities
  2009-08-20 12:44 [Bug debug/41130] New: GCC should emit an index of publicly named entities dodji at gcc dot gnu dot org
                   ` (12 preceding siblings ...)
  2009-12-03 18:10 ` tromey at gcc dot gnu dot org
@ 2009-12-03 18:16 ` tromey at gcc dot gnu dot org
  2009-12-07 21:32 ` tromey at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: tromey at gcc dot gnu dot org @ 2009-12-03 18:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from tromey at gcc dot gnu dot org  2009-12-03 18:16 -------
I compiled a C++ program with a gcc that includes this patch.
I see some erroneous entries in the resulting index.  E.g.:

          0xb8 DW_TAG_structure_type                ._6
         0x3f1 DW_TAG_structure_type       basic_string
        0x3fc2 DW_TAG_structure_type               _Rep


-- 


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


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

* [Bug debug/41130] GCC should emit an index of publicly named entities
  2009-08-20 12:44 [Bug debug/41130] New: GCC should emit an index of publicly named entities dodji at gcc dot gnu dot org
                   ` (13 preceding siblings ...)
  2009-12-03 18:16 ` tromey at gcc dot gnu dot org
@ 2009-12-07 21:32 ` tromey at gcc dot gnu dot org
  2010-03-23  9:54 ` dodji at gcc dot gnu dot org
  2010-06-15 21:51 ` tromey at gcc dot gnu dot org
  16 siblings, 0 replies; 18+ messages in thread
From: tromey at gcc dot gnu dot org @ 2009-12-07 21:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from tromey at gcc dot gnu dot org  2009-12-07 21:32 -------
It would be best for gdb if gcc emitted an "empty" section if
there was nothing to index.  See PR 42288 for an analogous case.
This is worth doing even though, in this situation, the resulting
CU won't really hold much of interest.  The reason is that if all
the CUs are represented, then gdb can defer even mapping .debug_info,
which is significant.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unknown                     |tree-ssa


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


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

* [Bug debug/41130] GCC should emit an index of publicly named entities
  2009-08-20 12:44 [Bug debug/41130] New: GCC should emit an index of publicly named entities dodji at gcc dot gnu dot org
                   ` (14 preceding siblings ...)
  2009-12-07 21:32 ` tromey at gcc dot gnu dot org
@ 2010-03-23  9:54 ` dodji at gcc dot gnu dot org
  2010-06-15 21:51 ` tromey at gcc dot gnu dot org
  16 siblings, 0 replies; 18+ messages in thread
From: dodji at gcc dot gnu dot org @ 2010-03-23  9:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from dodji at gcc dot gnu dot org  2010-03-23 09:54 -------
Not working on this atm.


-- 

dodji at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|dodji at gcc dot gnu dot org|unassigned at gcc dot gnu
                   |                            |dot org
             Status|ASSIGNED                    |NEW


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


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

* [Bug debug/41130] GCC should emit an index of publicly named entities
  2009-08-20 12:44 [Bug debug/41130] New: GCC should emit an index of publicly named entities dodji at gcc dot gnu dot org
                   ` (15 preceding siblings ...)
  2010-03-23  9:54 ` dodji at gcc dot gnu dot org
@ 2010-06-15 21:51 ` tromey at gcc dot gnu dot org
  16 siblings, 0 replies; 18+ messages in thread
From: tromey at gcc dot gnu dot org @ 2010-06-15 21:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #15 from tromey at gcc dot gnu dot org  2010-06-15 21:51 -------
I think we've decided not to pursue this route.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX
   Target Milestone|---                         |4.5.1
            Version|tree-ssa                    |4.6.0


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


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

end of thread, other threads:[~2010-06-15 21:51 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-20 12:44 [Bug debug/41130] New: GCC should emit an index of publicly named entities dodji at gcc dot gnu dot org
2009-08-20 12:45 ` [Bug debug/41130] " dodji at gcc dot gnu dot org
2009-08-20 12:45 ` dodji at gcc dot gnu dot org
2009-08-20 14:42 ` dodji at gcc dot gnu dot org
2009-08-24 21:41 ` dodji at gcc dot gnu dot org
2009-08-24 21:42 ` dodji at gcc dot gnu dot org
2009-08-27  9:31 ` dodji at gcc dot gnu dot org
2009-08-27  9:33 ` dodji at gcc dot gnu dot org
2009-09-29 20:04 ` tromey at gcc dot gnu dot org
2009-11-19 16:30 ` tromey at gcc dot gnu dot org
2009-11-19 16:46 ` tromey at gcc dot gnu dot org
2009-12-02 19:40 ` tromey at gcc dot gnu dot org
2009-12-03 18:08 ` tromey at gcc dot gnu dot org
2009-12-03 18:10 ` tromey at gcc dot gnu dot org
2009-12-03 18:16 ` tromey at gcc dot gnu dot org
2009-12-07 21:32 ` tromey at gcc dot gnu dot org
2010-03-23  9:54 ` dodji at gcc dot gnu dot org
2010-06-15 21:51 ` tromey 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).