FW: Re: [patch] mi-cmd-var.c validate type
msnyder@sonic.net
msnyder@sonic.net
Mon Jul 30 21:33:00 GMT 2007
>>
>> ! return (TYPE_CODE (type) != TYPE_CODE_ARRAY
>> && TYPE_CODE (type) != TYPE_CODE_STRUCT
>> && TYPE_CODE (type) != TYPE_CODE_UNION);
>
> I'd suspect the comment's bogus, in light of this comment in varobj.c
>
> /* The type of this variable. This may NEVER be NULL. */
> struct type *type;
>
> I think mi_print_value_p can either assume type is not NULL, or
> gdb_assert that.
OK, how about this?
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mitype2.txt
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20070730/e6224666/attachment.txt>
More information about the Gdb-patches
mailing list