From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15928 invoked by alias); 8 Jun 2011 17:08:53 -0000 Received: (qmail 15917 invoked by uid 22791); 8 Jun 2011 17:08:52 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 08 Jun 2011 17:08:37 +0000 Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 523671B4028; Wed, 8 Jun 2011 17:08:36 +0000 (UTC) From: Mike Frysinger To: Joel Brobecker Subject: Re: [PATCH] gdb: sim: automatically pass down sysroot Date: Wed, 08 Jun 2011 17:08:00 -0000 User-Agent: KMail/1.13.7 (Linux/2.6.39; KDE/4.6.3; x86_64; ; ) Cc: gdb-patches@sourceware.org, toolchain-devel@blackfin.uclinux.org References: <1306440200-25087-1-git-send-email-vapier@gentoo.org> <20110608164939.GA14178@adacore.com> In-Reply-To: <20110608164939.GA14178@adacore.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1553902.oNLocFNZY2"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201106081308.36284.vapier@gentoo.org> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-06/txt/msg00114.txt.bz2 --nextPart1553902.oNLocFNZY2 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-length: 1129 On Wednesday, June 08, 2011 12:49:39 Joel Brobecker wrote: > > 2011-05-26 Mike Frysinger > >=20 > > * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=3D" and > > gdb_sysroot to the "len" variable. Append both to "arg_buf". >=20 > It turns out that this is breaking some simulators, at least the ppc sim: >=20 > % powerpc-elf-gdb > (gdb) target sim > Unrecognized option >=20 > The problem is that some sims have their own argument parsing, > and they sometimes reject the --sysroot=3D option. Here is the patch > I just checked in to fix the ppc, but I think that other simulators > might have the same problem. I checked a few, and I think that > the d10v sim, for instance, will also need to be updated). >=20 > So, we have a decision to make: Either do a pass over all simulators, > and fix the ones that need fixing, or revert (in which case my ppc > patch also needs to be reverted). i'll take a look over the sims to see which lack sysroot support and fix th= em=20 up ... really wish people would use the common/ dir more as this keeps biti= ng=20 me :/ -mike --nextPart1553902.oNLocFNZY2 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. Content-length: 836 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABAgAGBQJN76yUAAoJEEFjO5/oN/WBXaAP/jRe6XDgz+A6XuHav/Hz5BfS xydYAHhG+Jwni7ivXNdJlVj9jwHeRplBjGF7+dG9bpDQLo4NpCeoOSwLyXiiwG48 VSow5IpmApCxZ00h1CPbW8bQIIdWVo2wiJSv6JOWe4hPpCPDslAvXcccfzg1u/K4 2c6ElSgM5a7srxZho0Tuh2oVvoAEukfPJI7VncqgCW/m0Ztm6BH35CqBhHqaf7E4 P5OTrEiMQRrragbjogSnM2tzDvEANEqJnqyhcTl90ppXWZoPd36XhItd0GKU9FCw xgqHe1EvgJcORkwOSkKwGl8dx/zaL9OoAK7LDNlS9QJNHPsklwvH2EtvpmK8QcvK 2aP5foj1QKOqa1OVbrB613FStTbjfXRO8pLrBLUelJ4yp3JWd7suAH7mn6Qte4K/ /x9FoCsqXl4mmQvrHtan1Y19CuRiOr/Drju4MG4CwdCaLYq9+ON1WthHcAPUiAuX ijl8W4mDQt/zzJih5z/9GBkNw1lhsgYcRcwd7p+2z2X4p9CAENvnAaTP1p1q9O2R tkJmi5bAnP9oWVk1AHN7uTqLLxaOJGyiCdJdab84l9DNrMyvWfy3WwLDiC+JvVNg 6dFWSI//n4uaSRrF+DuteZtREtMb+LO6iGg8+aF50fkPvyU51jAE00s8cJ5XLF4e ruthxyiNGqR6Fp7w7Kuf =kyH/ -----END PGP SIGNATURE----- --nextPart1553902.oNLocFNZY2--