Bug 8617 - no canonical way to output names of C++ types
Summary: no canonical way to output names of C++ types
Status: REOPENED
Alias: None
Product: gdb
Classification: Unclassified
Component: c++ (show other bugs)
Version: HEAD
: P3 enhancement
Target Milestone: 6.8
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-14 18:28 UTC by David Carlton
Modified: 2012-02-23 16:26 UTC (History)
4 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Carlton 2004-01-14 18:28:00 UTC
[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
Comment 1 David Carlton 2004-01-14 19:03:32 UTC
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
 

Comment 2 Daniel Jacobowitz 2004-01-14 23:12:13 UTC
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
Comment 3 Tom Tromey 2009-05-20 21:38:33 UTC
Daniel's fix for this went in, so I am closing this.
Comment 4 Tom Tromey 2012-02-23 16:26:00 UTC
I'm reopening this.
There is still a KFAIL for this bug in gdb.cp/templates.exp.