This is the mail archive of the gdb-patches@sources.redhat.com 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: [PATCH] Address FIXME in i386-tdep.c:i386_extract_struct_value_address


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



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