This is the mail archive of the gdb@sourceware.org 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: Support for multiple calling conventions


On Fri, Apr 11, 2008 at 12:52:31PM +0200, Corinna Vinschen wrote:
> - The return_value functions get the function type as argument,
>   not the value type.  They have to retrieve the value type from
>   the function type themselves.
> 
> - The return_value functions get an addition function type argument.
> 
> - The return_value functions get an addition `unsigned calling_convention'
>   argument.

IMO adding the function type is best.  It's more extensible than
adding a calling convention argument which most platforms won't need,
and it changes the signature so that no one will get confused which
type is passed.

-- 
Daniel Jacobowitz
CodeSourcery


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