From: Daniel Jacobowitz <drow@false.org>
To: Ulrich Weigand <uweigand@de.ibm.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch] gdbserver support for e500 / altivec
Date: Wed, 17 Oct 2007 01:02:00 -0000 [thread overview]
Message-ID: <20071017003609.GA1336@caradoc.them.org> (raw)
In-Reply-To: <200710162209.l9GM9WsD014935@d12av02.megacenter.de.ibm.com>
On Wed, Oct 17, 2007 at 12:09:32AM +0200, Ulrich Weigand wrote:
> Dan Jacobowitz wrote:
>
> > * configure.srv: Use alternate register sets for powerpc64-*-linux*
> > with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
> > with SPE.
>
> This uses a configure-time check whether __ALTIVEC__ is defined. However,
> GCC for PowerPC by default does not define __ALTIVEC__, it does so only
> when using the -maltivec flag. In any case, this is rather independent of
> whether the target system supports AltiVec or not ...
Not quite independent: if you built gdbserver with -maltivec (and
-mabi=altivec normally) then gdbserver will require altivec to run.
The other direction is a problem though.
> Why does this need to be a configure check in the first place? Wouldn't
> it be much preferable if you could build a single gdbserver binary that
> would report the properties of the system it happens to be running on?
I agree. But to do it that way, you need to make gdbserver support
multiple register cache layouts; multiple potential XML descriptions
to return as target.xml; and runtime detection of which register set
to use.
It's definitely doable (GDB does it). I haven't found the time
yet, and this was easy. So consider it a missing feature, or
a challenge :-)
--
Daniel Jacobowitz
CodeSourcery
prev parent reply other threads:[~2007-10-17 0:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-05 18:02 Daniel Jacobowitz
2007-10-15 20:22 ` Daniel Jacobowitz
2007-10-16 22:22 ` Ulrich Weigand
2007-10-17 1:02 ` Daniel Jacobowitz [this message]
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=20071017003609.GA1336@caradoc.them.org \
--to=drow@false.org \
--cc=gdb-patches@sourceware.org \
--cc=uweigand@de.ibm.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