From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28432 invoked by alias); 3 Jul 2009 19:38:07 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 28422 invoked by uid 22791); 3 Jul 2009 19:38:06 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: Tom Tromey Cc: Project Archer Subject: Re: feature idea: type nicknames In-Reply-To: Tom Tromey's message of Friday, 3 July 2009 10:34:32 -0600 References: <20090703002049.C49F1404FD@magilla.sf.frob.com> Message-Id: <20090703193755.9F86446126@magilla.sf.frob.com> Date: Fri, 03 Jul 2009 19:38:00 -0000 X-SW-Source: 2009-q3/txt/msg00017.txt.bz2 > We looked into this particular sub-problem a little. Our idea was > that it would be nice if "ptype x" showed exactly what the user wrote > in the declaration of "x". Yes, that's the ideal default. The "shortest way to say it" heuristic is a "better than nothing" idea for the default given limitations on what gdb can/does figure out from the DWARF. (I think the manually user-added nicknames would be nice too. Sometimes what I wrote in the source is a bit long to use a hundred times in a long debugging session.) > In the end it seems that GCC usually emits the verbose forms. I filed > a gcc bug report about this; but it isn't completely clear that this > is what we actually want (see last comment): I don't really follow what that comment says, but I concur that this qualifies as "isn't completely clear". :-) > Another idea would be to suppress printing of defaulted template > parameters by default. I don't think we've researched that yet. Yes, I think that is obviously desireable. > (I assume we'll get into the usual problems: DWARF still can't represent > everything, and anyway even if it could, GCC doesn't emit it :-) Got to push on the stack from one end or the other to make it move. Thanks, Roland