This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Variable objects: references formatting
Nick Roberts <nickrob@snap.net.nz> writes:
> > > OK, if its a patch for -var-valuate-expression then perhaps the BOGUS
> > > comment could be removed as it seems to address this issue.
> >
> > I read the "BOGUS" comment as referring to the fact that we have to
> > specially trap structs and unions, instead of simply passing
> > everything through common_val_print. I don't think this patch affects
> > that "bogusness"; it just makes the workaround work better.
>
> I was guessing. I see that the check is for var->type, whereas
> perhaps val_print prints out children if var->val->type is a
> struct/class. But I don't know the relationship between the two and
> you're the expert in these matters.
Well, I don't feel very expert in MI; I appreciate having other eyes
look stuff over.