[PATCH] Fix ptype problem printing typedefs defined differently in different compilation units

Eli Zaretskii eliz@gnu.org
Fri Feb 17 09:15:00 GMT 2006


> From: Fred Fish <fnf@diveadx.com>
> Date: Thu, 16 Feb 2006 19:16:00 -0500
> Cc: Jim Blandy <jimb@red-bean.com>, gdb-patches@sourceware.org
> 
> On Tuesday 14 February 2006 09:10, Daniel Jacobowitz wrote:
> > This patch seems OK to me; but we really ought to fix up the comment
> > directly above this code that you're changing.
> 
> I've think it would be best to split work on this issue up into two parts
> 
> (1) Make ptype and whatis handle the same arguments.  Currently ptype
> will work on typedefs, but whatis does not.  This is the change that
> makes them both use whatis_exp and eliminates ptype_eval.
> [...]
> Here is the patch for (1).
> [...]
> --- 180,191 ----
>     whatis_exp (exp, -1);
>   }
>   
>   /* TYPENAME is either the name of a type, or an expression.  */
>   
>   static void
>   ptype_command (char *typename, int from_tty)
>   {
> !   whatis_exp (typename, 1);
>   }

Will the manual's description of the differences between these two
commands be still valid after this change?



More information about the Gdb-patches mailing list