This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/49047] New: DW_AT_linkage_name missing for constructors and destructors


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

           Summary: DW_AT_linkage_name missing for constructors and
                    destructors
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: tromey@gcc.gnu.org


Compile this with -g:

struct K
{
  K () { }
  ~K () { }

  int m () { return 5; }
};

K k;


If you run 'readelf -wi' on it, you will see that 'm' has a linkage name:

 <2><66>: Abbrev Number: 5 (DW_TAG_subprogram)
    <67>   DW_AT_external    : 1        
    <68>   DW_AT_name        : m        
    <6a>   DW_AT_decl_file   : 1        
    <6b>   DW_AT_decl_line   : 6        
    <6c>   DW_AT_MIPS_linkage_name: (indirect string, offset: 0x76): _ZN1K1mEv  

However, the constructors and destructor do not.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]