[Converted from Gnats 1512] We currently don't have any canonical way to output names of C++ types. E.g. const char * vs. char const *; more subtleties arise when dealing with templates. This is, of course, less important than the fact that we don't know how to recognize different names of types as equivalent when doing input, but it's still unfortunate. Release: 2004-01-14-cvs Environment: any
From: carlton@sources.redhat.com To: gdb-gnats@sourceware.org Cc: Subject: c++/1512 Date: 14 Jan 2004 19:03:32 -0000 CVSROOT: /cvs/src Module name: src Changes by: carlton@sourceware.org 2004-01-14 19:03:32 Modified files: gdb/testsuite : ChangeLog gdb/testsuite/gdb.cp: rtti.exp templates.exp Log message: 2004-01-14 David Carlton <carlton@bactrian.org> * gdb.cp/rtti.exp: Update copyright. KFAIL test with repect to PR c++/1511 and update coment. * gdb.cp/templates.exp: Update patterns to match current output. If changes involve something other than whitespace, KFAIL w.r.t. PR c++/1512 or PR c++/931 as appropriate. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.750&r2=1.751 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.cp/rtti.exp.diff?cvsroot=src&r1=1.2&r2=1.3 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.cp/templates.exp.diff?cvsroot=src&r1=1.5&r2=1.6
From: Daniel Jacobowitz <drow@mvista.com> To: carlton@bactrian.org Cc: gdb-gnats@sources.redhat.com Subject: Re: c++/1512: no canonical way to output names of C++ types Date: Wed, 14 Jan 2004 18:12:13 -0500 On Wed, Jan 14, 2004 at 06:26:13PM -0000, carlton@bactrian.org wrote: > > >Number: 1512 > >Category: c++ > >Synopsis: no canonical way to output names of C++ types > >Confidential: no > >Severity: serious > >Priority: medium > >Responsible: unassigned > >State: open > >Class: change-request > >Submitter-Id: net > >Arrival-Date: Wed Jan 14 18:28:00 UTC 2004 > >Closed-Date: > >Last-Modified: > >Originator: carlton@bactrian.org > >Release: 2004-01-14-cvs > >Organization: > >Environment: > any > >Description: > We currently don't have any canonical way to output > names of C++ types. E.g. const char * vs. > char const *; more subtleties arise when dealing with > templates. > > This is, of course, less important than the fact that > we don't know how to recognize different names > of types as equivalent when doing input, but it's > still unfortunate. Fixes for this are in progress on drow-cplus-branch. All the necessary code is there, it just needs to be hooked up :) I think I've gotten derailed on some other problems first, though. The basic problem is that we want to canonicalize the names before adding them to the symbol table, and that increases startup time. I'm looking for ways to shave startup time elsewhere. I have a few ideas. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer
Daniel's fix for this went in, so I am closing this.
I'm reopening this. There is still a KFAIL for this bug in gdb.cp/templates.exp.