From: Daniel Jacobowitz <drow@false.org>
To: Ulrich Weigand <uweigand@de.ibm.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [rfc][3/3] gdbserver bi-arch for ppc: enable bi-arch support
Date: Wed, 27 Feb 2008 13:20:00 -0000 [thread overview]
Message-ID: <20080227131910.GC21538@caradoc.them.org> (raw)
In-Reply-To: <200802080111.m181BMCL008752@d12av02.megacenter.de.ibm.com>
On Fri, Feb 08, 2008 at 02:11:22AM +0100, Ulrich Weigand wrote:
> + /* Only if the high bit of the MSR is set, we actually have
> + a 64-bit inferior. */
> +#ifdef __ALTIVEC__
> + collect_register_by_name ("msr", &msr);
> +#else
> + collect_register_by_name ("ps", &msr);
> +#endif
> + if (msr < 0)
> + return;
> +#endif
This #ifdef can go away; in the manually written regformats files,
calls to collect_register_by_name are the only thing that rely on
the register name, so you could just rename it to msr.
Otherwise OK.
> + /* OK, we have a 32-bit inferior. */
> +#ifdef __ALTIVEC__
> + init_registers_powerpc_32 ();
> +#else
> +#ifdef __SPE__
> + init_registers_powerpc_e500 ();
> +#else
> + init_registers_ppc ();
> +#endif
> +#endif
I hope we can autodetect AltiVec and SPE too... Maybe we have to
resort to checking the inferior's auxv?
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2008-02-27 13:19 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-08 1:11 Ulrich Weigand
2008-02-27 13:20 ` Daniel Jacobowitz [this message]
2008-02-28 7:16 ` Ulrich Weigand
2008-02-28 14:13 ` Daniel Jacobowitz
2008-02-28 17:03 ` [rfc/rft] ppc gdbserver: autodetect AltiVec and SPE Ulrich Weigand
2008-02-28 17:12 ` Daniel Jacobowitz
2008-03-26 20:21 ` Ulrich Weigand
2008-04-19 0:19 ` Thiago Jung Bauermann
2008-04-19 6:17 ` Daniel Jacobowitz
2008-04-20 14:28 ` Thiago Jung Bauermann
2008-04-21 9:21 ` Daniel Jacobowitz
2008-04-21 10:00 ` Thiago Jung Bauermann
2008-04-21 14:04 ` Ulrich Weigand
2008-04-21 14:32 ` Daniel Jacobowitz
2008-04-21 15:36 ` Ulrich Weigand
2008-04-21 15:38 ` Daniel Jacobowitz
2008-04-17 17:47 ` Daniel Jacobowitz
2008-04-17 19:03 ` Daniel Jacobowitz
2008-04-17 21:34 ` Ulrich Weigand
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=20080227131910.GC21538@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