Re: [PATCH] Address FIXME in i386-tdep.c:i386_extract_struct_value_address

Andrew Cagney
2002-11-07T23:12:00Z

> Date: Sat, 26 Oct 2002 13:23:08 -0400
> From: Andrew Cagney <ac131313@redhat.com>
>
> > We know for sure here that we're not dealing with a cooked register.
>
> That's what you think :-) It's more correct here to use the cooked
> interface.
>
> Care to enlighten me? Is it that one should always use the cooked
> interface, except in code that's present to support the cooked
> interface in the first place?

Yes.

ABI code (such as that finding the location of the struct return
pointer) interacts with the cooked interface.

That way, nothing (except the code to map cooked registers onto raw
registers and/or memory) knows exactly how the underlying registers are
implemented.

Andrew