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: [RFA]: gdbarch FETCH_POINTER_ARGUMENT


On Fri, May 30, 2003 at 03:26:28PM -0400, Andrew Cagney wrote:



>Here's an updated patch. The more I looked at the "struct type *type" >argument, the less I understood about how it should be used. I assume it >would only be used, so far, on i386, but I'm easily confused by stacks and >registers (and how things are stored there), so any pointers would be >appreciated.


The patch is almost fine. Change it to `F' instead of `f' - so that a predicate is also available.


For some background, see: Pointers Are Not Always Addresses
http://sources.redhat.com/gdb/current/onlinedocs/gdbint_9.html#SEC71

The d10v is an example.


Shouldn't TYPE be used?  I guess I'm not understanding why you wanted
it to be there...

Strictly speaking POINTER_TO_ADDRESS should be used. The only targets that absolutly need this though are the d10v and avr (which weren't modified).


Andrew



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