This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]