This is the mail archive of the gdb-prs@sources.redhat.com 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: c++/1063: ptype C prints too much or too little when C is a templated class


The following reply was made to PR c++/1063; it has been noted by GNATS.

From: David Carlton <carlton at math dot stanford dot edu>
To: GNATS Filer <gdb-gnats at sources dot redhat dot com>
Cc:  
Subject: Re: c++/1063: ptype C prints too much or too little when C is a templated class
Date: 26 Feb 2003 12:14:31 -0800

 After discussing this with Daniel Jacobowitz, the reasonable behavior
 for 'ptype C' when C is the name of a template class, is to complain
 about the absence of a symbol named 'C'.  Neither stabs nor DWARF-2 is
 capable of representing more information than that (though apparently
 HP has a debugging format that does, hence the presence of a test
 regarding this in the test suite).
 
 The reason why sometimes GDB prints out the type for C<int> instead is
 because the DWARF-2 for C<int> contains a typedef for C, and GDB has
 bugs regarding nested types.  (C.f. PR gdb/57, for example.)  So I'm
 closing this bug report.


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