Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Anmol P. Paralkar" <b07584@freescale.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb@sourceware.org
Subject: Re: Regenerate config/features/rs6000
Date: Tue, 01 Apr 2008 20:23:00 -0000	[thread overview]
Message-ID: <Pine.LNX.4.64.0804011446540.19389@ld0159-tx32.am.freescale.net> (raw)
In-Reply-To: <20080401171247.GA26455@caradoc.them.org>

On Tue, 1 Apr 2008, Daniel Jacobowitz wrote:

> On Tue, Apr 01, 2008 at 12:07:16PM -0500, Anmol P. Paralkar wrote:
>>  Assume that you are adding support for 'newarch' (say under powerpc).
>
> Why do you even need this?

  Only in the instance of a truly brand new architecture?

> You should be able to generate the C file
> from an existing PowerPC even before teaching it about the new
> architecture variant.  If that doesn't work then you can't provide
> new variants over remote, which would defeat the point.  If there was
> an error, please let me know.

  Sure, yes. That is not a problem e.g. powerpc-603.xml where, I suppose
  the variation is indicated by :

   <feature name="603">
     <reg name="hid0" bitsize="32"/>
     ...
     <reg name="rpa" bitsize="32"/>
   </feature>

> Meanwhile, I'd love to remove the circular dependency, but I haven't
> thought of a way to do it yet.

  When you say circular dependency, you mean using a GDB to generate a
  part of itself, right? For variants of existing architecures this not
  so non-intuitive. However, when adding a brand new arch. (e.g. say if we
  had XML descriptions in place and were adding support for the e500),
  one has to teach it about the new architecture first, else it's not
  going to like the: <architecture>powerpc:e500</architecture> resulting in:

warning: while parsing target description (at line <?>): Target description specified unknown architecture "powerpc:e500"
warning: Could not load XML target description; ignoring
There is no target description to print.

  For a situation like that, is there a simpler process than/alternative to
  the one I outlined in my previous mail?

Thanks,
Anmol.

>
> -- 
> Daniel Jacobowitz
> CodeSourcery
>


  reply	other threads:[~2008-04-01 20:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-31 23:58 Michael Eager
     [not found] ` <20080331234135.GA29623@caradoc.them.org>
     [not found]   ` <47F17A97.1000408@eagercon.com>
2008-04-01  1:09     ` Daniel Jacobowitz
2008-04-01 17:07       ` Anmol P. Paralkar
2008-04-01 17:13         ` Daniel Jacobowitz
2008-04-01 20:23           ` Anmol P. Paralkar [this message]
2008-04-01 20:36             ` 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=Pine.LNX.4.64.0804011446540.19389@ld0159-tx32.am.freescale.net \
    --to=b07584@freescale.com \
    --cc=drow@false.org \
    --cc=gdb@sourceware.org \
    /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