From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24823 invoked by alias); 17 Feb 2006 13:36:07 -0000 Received: (qmail 24813 invoked by uid 22791); 17 Feb 2006 13:36:07 -0000 X-Spam-Check-By: sourceware.org Received: from wsip-24-248-2-174.ph.ph.cox.net (HELO public.ninemoons.com) (24.248.2.174) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 17 Feb 2006 13:36:04 +0000 Received: from puffer.diveadx.com (dpc67446126.direcpc.com [67.44.6.126]) by public.ninemoons.com (8.13.4/8.13.4) with ESMTP id k1HDYmfq022159; Fri, 17 Feb 2006 06:34:50 -0700 Received: from [192.168.1.146] (unknown [192.168.1.146]) by puffer.diveadx.com (Postfix) with ESMTP id 2337B2973DC; Fri, 17 Feb 2006 08:51:57 -0500 (EST) From: Fred Fish Reply-To: fnf@diveadx.com To: Eli Zaretskii Subject: Re: [PATCH] Fix ptype problem printing typedefs defined differently in different compilation units Date: Fri, 17 Feb 2006 13:36:00 -0000 User-Agent: KMail/1.9.1 Cc: drow@false.org, jimb@red-bean.com, gdb-patches@sourceware.org References: <200601031517.50309.fnf@specifix.com> <200602161916.00761.fnf@diveadx.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200602170835.01832.fnf@diveadx.com> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-02/txt/msg00336.txt.bz2 On Friday 17 February 2006 04:15, Eli Zaretskii wrote: > Will the manual's description of the differences between these two > commands be still valid after this change? The only difference between ptype and whatis, for the arguments that they accept, will be whether the "detailed description" of the type is printed. This is actually the current state of affairs even without the patch, except that without the patch using whatis on type names will print: "Attempt to use a type name as an expression" This patch basically simplifies the code and allows whatis to accept type names. With this patch, there are no changes in the gdb testsuite results, other than the newly added tests pass (they fail without the code part of the patch). I'll make the appropriate doc changes and post a revised patch. -Fred