[patch/rfc/hppa] handle setting gp for calling shlib functions

Andrew Cagney cagney@gnu.org
Tue May 4 14:03:00 GMT 2004


>>> The function/variable is (well was, it appears to have fallen off the
>>>
>>>> radar for the moment) also wanted for a second reason.  When it comes to implementing ABI variants the full function type info is needed.  Hence, a ``struct value'' function descriptor (or descriptor pointer / type) are going to eventually be needed anyway.  Hence, I think an updated push-dummy-call with the new parameter would be better.
>>
>>
>>
>> i can certainly try to look into this, but in lieu of the above (at
>> least in the meantime) would it be ok if i stash the func descriptor passed into convert_from_func_ptr_addr into a "cache" in the
>> tdep structure, and in push_dummy_call check the passed in funcaddr
>> against the cached value?
> 
> 
> Er, no, we're going to fix it.

What happens if the function pointer value, rather than code start 
address is passed into push dummy call?  The entire value should be 
passed in, but this is a simple step in that direction.

Andrew




More information about the Gdb-patches mailing list