This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix ptype problem printing typedefs defined differently in different compilation units
- From: Fred Fish <fnf at diveadx dot com>
- To: Eli Zaretskii <eliz at gnu dot org>
- Cc: drow at false dot org, jimb at red-bean dot com, gdb-patches at sourceware dot org
- Date: Fri, 17 Feb 2006 08:35:01 -0500
- Subject: Re: [PATCH] Fix ptype problem printing typedefs defined differently in different compilation units
- References: <200601031517.50309.fnf@specifix.com> <200602161916.00761.fnf@diveadx.com> <uaccqibxk.fsf@gnu.org>
- Reply-to: fnf at diveadx dot com
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