From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30770 invoked by alias); 9 Jun 2011 07:29:32 -0000 Received: (qmail 30760 invoked by uid 22791); 9 Jun 2011 07:29:30 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 09 Jun 2011 07:29:14 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 75194CB0260; Thu, 9 Jun 2011 09:29:13 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9t9M1BVACZBS; Thu, 9 Jun 2011 09:29:10 +0200 (CEST) Received: from ulanbator.act-europe.fr (ulanbator.act-europe.fr [10.10.1.67]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 5CA94CB01D3; Thu, 9 Jun 2011 09:29:10 +0200 (CEST) Subject: Re: [PATCH] gdb: sim: automatically pass down sysroot Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Tristan Gingold In-Reply-To: <201106090107.44953.vapier@gentoo.org> Date: Thu, 09 Jun 2011 07:29:00 -0000 Cc: Joel Brobecker , gdb-patches@sourceware.org, toolchain-devel@blackfin.uclinux.org Content-Transfer-Encoding: quoted-printable Message-Id: <8BCAE08E-3F58-49B3-B822-E3BC2B298C7F@adacore.com> References: <1306440200-25087-1-git-send-email-vapier@gentoo.org> <20110608164939.GA14178@adacore.com> <201106090107.44953.vapier@gentoo.org> To: Mike Frysinger 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/msg00123.txt.bz2 On Jun 9, 2011, at 7:07 AM, Mike Frysinger wrote: > here's the fix for erc32. ok to commit ? Is it correct ? IIRC sizeof ("xxx") =3D=3D strlen ("xxx") + 1. > (style is god awful, but seems the whole erc32 code base is buggered and = i'm=20 > not about to try and fix that) > -mike >=20 > --- sim/erc32/interf.c 1 Jun 2011 17:35:02 -0000 1.10 > +++ sim/erc32/interf.c 9 Jun 2011 05:03:32 -0000 > @@ -234,6 +234,9 @@ sim_open (kind, callback, abfd, argv) > if ((stat + 1) < argc) { > freq =3D strtol(argv[++stat], (char **)NULL, 0); > } > + } else > + if (strncmp(argv[stat], "--sysroot=3D", sizeof("--sysroot=3D")) =3D= =3D 0) { > + /* Ignore until we start to support this. */ > } else { > (*sim_callback->printf_filtered) (sim_callback, > "unknown option %s\n",