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: MI: fix base members in references


Vladimir Prus writes:

> does the code you've added ever does anything?

It seems to handle variable objects of references to pointers correctly.
Have you tried it?

and:

 > > Are you saying get_type should use value_type (var->value) instead of
 > > var->type?
 > 
 > No. I'm saying that instead of using get_type and then additionally doing
 > something with the type, we should directly use value_type (var->value). If
 > we want to know how many children a value has, and you know the type of the
 > value, it does not make sense to take some other type, do some
 > transformation on it, and the hope you'll get the same type. You can just
 > use the type that's right.

I don't think so because it looks at target_type not type.  But these are
unfamiliar concepts to me, so if you think it can be done more simply, or if my
patch doesn't work, post a patch and I'll try it out.

-- 
Nick                                           http://www.inet.net.nz/~nickrob


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