From: Daniel Jacobowitz <drow@false.org>
To: Vladimir Prus <vladimir@codesourcery.com>
Cc: Andreas Schwab <schwab@suse.de>, gdb-patches@sources.redhat.com
Subject: Re: ColdFire/fido support
Date: Tue, 05 Jun 2007 15:19:00 -0000 [thread overview]
Message-ID: <20070605151843.GA27064@caradoc.them.org> (raw)
In-Reply-To: <200705281542.47676.vladimir@codesourcery.com>
On Mon, May 28, 2007 at 03:42:47PM +0400, Vladimir Prus wrote:
> On Sunday 06 May 2007 15:52, Vladimir Prus wrote:
> > On Saturday 05 May 2007 15:02, Andreas Schwab wrote:
> > > Vladimir Prus <vladimir@codesourcery.com> writes:
> > >
> > > > + /* Is this ColdFire architecture, as opposed to generic m68k? */
> > > > + int coldfire;
> > > > +
> > > > + /* Is this fido architecture, as opposed to generic m68k? */
> > > > + int fido;
> > >
> > > How about making this a single enum? They surely can never both be
> > > non-zero at the same time.
> >
> > Good idea. Here's a revised patch.
>
> Any comments? I attach the patch again for convenience.
This is mostly OK. Please add a Makefile.in update for the new
#include. Also, we've added XML support for another target. So it
needs a new section in the manual describing which targets support
XML registers, and which registers are required.
> + if (feature == NULL)
> + {
> + feature = tdesc_find_feature (info.target_desc,
> + "org.gnu.gdb.coldfire.core");
> + if (feature != NULL)
> + flavour = m68k_coldfire_flavour;
> + }
> + /* The mechanism for returning floating values from function
> + and the type of long double depend on whether we're
> + on ColdFire or standard m68k. */
> +
> + if (info.bfd_arch_info)
> + {
> + const bfd_arch_info_type *coldfire_arch =
> + bfd_lookup_arch (bfd_arch_m68k, bfd_mach_mcf_isa_a_nodiv);
> +
> + if (coldfire_arch
> + && (*info.bfd_arch_info->compatible)
> + (info.bfd_arch_info, coldfire_arch))
> + flavour = m68k_coldfire_flavour;
> + }
This sets flavour partly based on the target, and partly based on the
object file. That's a bit confusing - we can determine float return
behavior strictly from the object file, and it's only the object
file's behavior that matters.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2007-06-05 15:19 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-05 9:37 Vladimir Prus
2007-05-05 11:02 ` Andreas Schwab
2007-05-06 11:52 ` Vladimir Prus
2007-05-28 11:43 ` Vladimir Prus
2007-06-05 15:19 ` Daniel Jacobowitz [this message]
2007-06-08 10:58 ` Vladimir Prus
2007-06-12 13:38 ` Daniel Jacobowitz
2007-06-15 10:17 ` Vladimir Prus
2007-06-15 14:47 ` Daniel Jacobowitz
2007-06-15 19:05 ` Vladimir Prus
2007-06-16 10:21 ` Eli Zaretskii
2007-06-19 16:39 ` Vladimir Prus
2007-06-19 16:53 ` Eli Zaretskii
2007-06-19 17:10 ` Daniel Jacobowitz
2007-06-19 18:00 ` Eli Zaretskii
2007-06-20 9:14 ` Vladimir Prus
2007-06-20 18:15 ` Eli Zaretskii
2007-06-30 15:47 ` Andreas Schwab
2007-06-30 16:00 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070605151843.GA27064@caradoc.them.org \
--to=drow@false.org \
--cc=gdb-patches@sources.redhat.com \
--cc=schwab@suse.de \
--cc=vladimir@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox