From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14058 invoked by alias); 31 Jan 2013 20:12:05 -0000 Received: (qmail 13869 invoked by uid 48); 31 Jan 2013 20:11:39 -0000 From: "tromey at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/49090] provide a way to recognize defaulted template parameters Date: Thu, 31 Jan 2013 20:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: tromey at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2013-01/txt/msg02928.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49090 --- Comment #3 from Tom Tromey 2013-01-31 20:11:36 UTC --- (In reply to comment #2) > Is GDB actually using the DW_TAG_template_*_param to generate the name of a > type, or just using the pretty name generated by GCC for DW_AT_name? > > Note that we don't currently generate those tags for uninstantiated types. I don't think I understand this last comment. A recent gdb does use the various template parameters to prettify type display. The example in this PR isn't so great, gdb gets something wrong :(. However: (gdb) ptype k type = struct K [with T1 = int, T2 = int] { T1 v1; T1 v2; } I'd like to be able to print: (gdb) whatis k type = K This will make type display in various places more consistent with what people generally want to see; and anyway there is an option to peel back the curtain and see the full information.