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: pr9065 patch


On 03/09/10 23:11, Eli Zaretskii wrote:
Date: Tue, 09 Mar 2010 15:38:30 -0500
From: Chris Moller<cmoller@redhat.com>

This is the typeid thing.

This patch implements typeid in gdb, letting users do things like

     p typeid(<expression>)
     p typeid(<expression>).name()
     p typeid(<expression>).__name
     p typeid(<expression>).__is_pointer_()

and the same thing for types (i.e., p typeid(<type>).name())

Thanks. I think this needs a suitable patch to the manual as well.

Okay, I'll add that for the final version. (There ar a couple of other minor things I remembered after I sent the patch out yesterday, like patching expprint.c to include the new opcode enums.)



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