public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/35463]  New: typedef missing in debug information with -gdwarf-2 for c++
@ 2008-03-04 20:11 mrs at apple dot com
  2008-03-04 20:15 ` [Bug debug/35463] " mrs at apple dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: mrs at apple dot com @ 2008-03-04 20:11 UTC (permalink / raw)
  To: gcc-bugs

typedef struct {
  int x;
} mystruct;
mystruct m;

is missing any debug information for mystruct.  If one compiles as C, mystruct
is present.

Still broken in 20080308 compiler.  Should be target independent.


-- 
           Summary: typedef missing in debug information with -gdwarf-2 for
                    c++
           Product: gcc
           Version: 4.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mrs at apple dot com
GCC target triplet: powerpc-apple-darwin9


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


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

* [Bug debug/35463] typedef missing in debug information with -gdwarf-2 for c++
  2008-03-04 20:11 [Bug debug/35463] New: typedef missing in debug information with -gdwarf-2 for c++ mrs at apple dot com
@ 2008-03-04 20:15 ` mrs at apple dot com
  2008-09-26 20:50 ` hiroto dot shibuya at gmail dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: mrs at apple dot com @ 2008-03-04 20:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from mrs at apple dot com  2008-03-04 20:15 -------
radr://5070293


-- 


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


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

* [Bug debug/35463] typedef missing in debug information with -gdwarf-2 for c++
  2008-03-04 20:11 [Bug debug/35463] New: typedef missing in debug information with -gdwarf-2 for c++ mrs at apple dot com
  2008-03-04 20:15 ` [Bug debug/35463] " mrs at apple dot com
@ 2008-09-26 20:50 ` hiroto dot shibuya at gmail dot com
  2009-04-30 12:46 ` jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: hiroto dot shibuya at gmail dot com @ 2008-09-26 20:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from hiroto dot shibuya at gmail dot com  2008-09-26 20:48 -------
I verified this to be the case since 4.1.0.  The last version this was working
was 4.0.4. 

Also this is specific to anonymous struct.  If the struct is named, it works
fine.  

This is sever issue for us when we moved from RHEL4 (gcc 3.4.6) to RHEL5 (gcc
4.1.2) that most of our gdb scripts stopped working which were heavily relying
on using typedef names of anonymous structs.


-- 

hiroto dot shibuya at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hiroto dot shibuya at gmail
                   |                            |dot com


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


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

* [Bug debug/35463] typedef missing in debug information with -gdwarf-2 for c++
  2008-03-04 20:11 [Bug debug/35463] New: typedef missing in debug information with -gdwarf-2 for c++ mrs at apple dot com
  2008-03-04 20:15 ` [Bug debug/35463] " mrs at apple dot com
  2008-09-26 20:50 ` hiroto dot shibuya at gmail dot com
@ 2009-04-30 12:46 ` jakub at gcc dot gnu dot org
  2009-04-30 13:06 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-04-30 12:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2009-04-30 12:46 -------
*** Bug 35462 has been marked as a duplicate of this bug. ***


-- 


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


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

* [Bug debug/35463] typedef missing in debug information with -gdwarf-2 for c++
  2008-03-04 20:11 [Bug debug/35463] New: typedef missing in debug information with -gdwarf-2 for c++ mrs at apple dot com
                   ` (2 preceding siblings ...)
  2009-04-30 12:46 ` jakub at gcc dot gnu dot org
@ 2009-04-30 13:06 ` jakub at gcc dot gnu dot org
  2009-04-30 15:16 ` jan dot kratochvil at redhat dot com
  2009-06-15 18:21 ` [Bug debug/35463] [4.3/4.4 only] " fxcoudert at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-04-30 13:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jakub at gcc dot gnu dot org  2009-04-30 13:05 -------
I think this has been fixed by
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146137
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146290
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146897
on the trunk.


-- 


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


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

* [Bug debug/35463] typedef missing in debug information with -gdwarf-2 for c++
  2008-03-04 20:11 [Bug debug/35463] New: typedef missing in debug information with -gdwarf-2 for c++ mrs at apple dot com
                   ` (3 preceding siblings ...)
  2009-04-30 13:06 ` jakub at gcc dot gnu dot org
@ 2009-04-30 15:16 ` jan dot kratochvil at redhat dot com
  2009-06-15 18:21 ` [Bug debug/35463] [4.3/4.4 only] " fxcoudert at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2009-04-30 15:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jan dot kratochvil at redhat dot com  2009-04-30 15:15 -------
Just that I agree this Bug looks to me fixed in g++-4.5.

The sample code like what is Comment 0 here from:
http://gcc.gnu.org/ml/gcc-help/2009-04/msg00393.html

gives DW_TAG_structure_type DW_AT_name "<anonymous struct>" on:
g++ (GCC) 4.4.0 20090427 (Red Hat 4.4.0-3)

and gives DW_TAG_structure_type DW_AT_name "type27" on:
g++ (GCC) 4.5.0 20090430 (experimental)


-- 


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


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

* [Bug debug/35463] [4.3/4.4 only] typedef missing in debug information with -gdwarf-2 for c++
  2008-03-04 20:11 [Bug debug/35463] New: typedef missing in debug information with -gdwarf-2 for c++ mrs at apple dot com
                   ` (4 preceding siblings ...)
  2009-04-30 15:16 ` jan dot kratochvil at redhat dot com
@ 2009-06-15 18:21 ` fxcoudert at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2009-06-15 18:21 UTC (permalink / raw)
  To: gcc-bugs



-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
 GCC target triplet|powerpc-apple-darwin9       |
      Known to fail|                            |4.4.0
      Known to work|                            |4.5.0
   Last reconfirmed|0000-00-00 00:00:00         |2009-06-15 18:21:49
               date|                            |
            Summary|typedef missing in debug    |[4.3/4.4 only] typedef
                   |information with -gdwarf-2  |missing in debug information
                   |for c++                     |with -gdwarf-2 for c++


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


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

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

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-04 20:11 [Bug debug/35463] New: typedef missing in debug information with -gdwarf-2 for c++ mrs at apple dot com
2008-03-04 20:15 ` [Bug debug/35463] " mrs at apple dot com
2008-09-26 20:50 ` hiroto dot shibuya at gmail dot com
2009-04-30 12:46 ` jakub at gcc dot gnu dot org
2009-04-30 13:06 ` jakub at gcc dot gnu dot org
2009-04-30 15:16 ` jan dot kratochvil at redhat dot com
2009-06-15 18:21 ` [Bug debug/35463] [4.3/4.4 only] " fxcoudert 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).