[RFA]: gdbarch FETCH_POINTER_ARGUMENT

Andrew Cagney ac131313@redhat.com
Fri May 30 21:33:00 GMT 2003


> 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




More information about the Gdb-patches mailing list