pr9065 patch

Chris Moller cmoller@redhat.com
Wed Mar 10 12:34:00 GMT 2010


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.)



More information about the Gdb-patches mailing list