This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA][2/5] New port: Cell BE SPU (valops.c fix)
On Thu, Nov 23, 2006 at 08:59:08PM +0100, Mark Kettenis wrote:
> I actually think the problem is that you're thinking that s.x lives in
> a register where it is actually s itself that lives in that register.
> So VALUE_TO_REGISTER should be called for the struct itself, not its
> char member.
This is at least the second time recently I've seen someone want to go
from value to parent value... I'm a little worried about consistency
between the two (e.g. do you update value_contents of one? both?) but
it may be that we need to link them to do this right. Or, just not use
lval_register for struct members / array subscripting. Which may be
the same thing in the end?
--
Daniel Jacobowitz
CodeSourcery