From: Mike Frysinger <vapier@gentoo.org>
To: Pedro Alves <palves@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] gdb: sim: disable integration w/some multitarget configs [PR sim/13418]
Date: Tue, 05 Jan 2016 00:55:00 -0000 [thread overview]
Message-ID: <20160105005552.GG25548@vapier.lan> (raw)
In-Reply-To: <568A75CE.1010007@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1629 bytes --]
On 04 Jan 2016 13:38, Pedro Alves wrote:
> On 01/02/2016 08:42 AM, Mike Frysinger wrote:
> > Multitarget builds currently fail when:
> > (1) simulator support is enabled
> > (2) powerpc is included in the target list
> > (3) powerpc is not the main/default target
> >
> > This is because the powerpc sim provides a non-standard API function
> > sim_spr_register_name which the powerpc gdb utilizes. Since the sim
> > does not yet support multitarget, only the sim for the main target
> > (if one exists) is built. When that target isn't powerpc, this func
> > is not available leading to linking errors.
> >
> > Since multitarget support is going to take a while, and specifically
> > the powerpc target is going to take even longer, disable sim support
> > automatically when the aforementioned conditions are met.
>
> > diff --git a/gdb/configure.ac b/gdb/configure.ac
> > index 5b618c9..458605f 100644
> > --- a/gdb/configure.ac
> > +++ b/gdb/configure.ac
> > @@ -2256,6 +2256,19 @@ fi
> > SIM=
> > SIM_OBS=
> > if test "${ignore_sim}" = "false"; then
> > + # The ppc gdb/sim only works when it's the main target. PR sim/13418
> > + case $target in
> > + powerpc*-*-*) ;;
> > + *)
> > + case "${all_targets}: ${TARGET_OBS} " in
> > + true:*|*" rs6000-tdep.o "*)
> > + AC_MSG_WARN([Disabling sim integration for multitarget powerpc configs])
> > + gdb_sim=
> > + ;;
> > + esac
> > + ;;
> > + esac
> > +
>
> Now sure about that. It penalizes non-PPC sims for a PPC sim issue.
>
> How about this instead?
i'm fine with this, so lgtm
-mike
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2016-01-05 0:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-02 8:42 Mike Frysinger
2016-01-04 13:38 ` Pedro Alves
2016-01-05 0:55 ` Mike Frysinger [this message]
2016-01-05 11:09 ` Pedro Alves
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=20160105005552.GG25548@vapier.lan \
--to=vapier@gentoo.org \
--cc=gdb-patches@sourceware.org \
--cc=palves@redhat.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