This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] sh-tdep.c: Begin evaluating calling_convention
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 13 Oct 2004 13:31:45 +0200
- Subject: Re: [RFA] sh-tdep.c: Begin evaluating calling_convention
- References: <416D0D57.3030807@st.com>
- Reply-to: gdb-patches at sources dot redhat dot com
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.