This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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]

Re: Is physname mangled or not? (PR c++/8216)


On Wed, May 04, 2011 at 05:08:46PM +0200, Jan Kratochvil wrote:
> On Tue, 03 May 2011 20:58:49 +0200, Ulrich Weigand wrote:
> >  - For template classes, the method name of a constructor does
> >    *not* contain the template instance type list, while the type
> >    name does, and thus the strcmp fails
> 
>  <1><55>: Abbrev Number: 6 (DW_TAG_class_type)
>     <56>   DW_AT_name        : (indirect string, offset: 0xb): C<int>
>  <2><61>: Abbrev Number: 7 (DW_TAG_subprogram)
>     <63>   DW_AT_name        : C
>     <68>   DW_AT_declaration : 1
>     <69>   DW_AT_object_pointer: <0x71>
>  <3><71>: Abbrev Number: 4 (DW_TAG_formal_parameter)
>     <72>   DW_AT_type        : <0x80>
>     <76>   DW_AT_artificial  : 1
>  <2><78>: Abbrev Number: 8 (DW_TAG_template_type_param)
>     <79>   DW_AT_name        : T
>     <7b>   DW_AT_type        : <0x119>
> (less important attributes removed).
> 
> This is IMO a GCC debug/ bug, shouldn't <63> DW_AT_name be `C<int>'?

No.  The constructor is named C, not C<int>, I believe.

-- 
Daniel Jacobowitz
Mentor Graphics


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