[PATCH] Fix mi "-var-create" regression
Luis Machado
lgustavo@codesourcery.com
Sun Oct 28 22:44:00 GMT 2012
Hi Tom,
On 10/17/2012 10:13 PM, Tom Tromey wrote:
>>>>>> "Luis" == Luis Machado<lgustavo@codesourcery.com> writes:
>
> Luis> + && TYPE_CODE (TYPE_TARGET_TYPE (result)) != TYPE_CODE_VOID)
>
> On further reflection, I have a question and a comment.
>
> First, perhaps instead of excluding void* here, we should only allow
> pointers to structs. That is the only case that has RTTI anyhow. What
> do you think?
>
> Also, I think this needs a check_typedef around TYPE_TARGET_TYPE.
>
> Tom
Thanks for the comments. I've addressed them in this new version, now
with a testcase.
Hopefully the testcase is well-formed.
Thanks,
Luis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rtti-print-object.diff
Type: text/x-patch
Size: 3891 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20121028/54ab4668/attachment.bin>
More information about the Gdb-patches
mailing list