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] sh-tdep.c: Begin evaluating calling_convention


On Oct 13 12:11, Joern RENNECKE wrote:
> >static const char *sh_active_calling_convention = sh_cc_auto;
> 
> Shouldn't this go into the tdep struct?

Can you expand a bit?  This setting reflects what has been set on the
UI level.  It's not quite clear to me why this should go into the tdep
struct.

The actually used calling_convention is evaluated in the 
sh_effective_calling_convention function which uses the setting of
sh_active_calling_convention only if the user overrides the default
on the UI level.  Otherwise the calling convention is a function
specific thingy anyway.


Corinna

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat, Inc.


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