From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25717 invoked by alias); 7 Oct 2009 18:32:11 -0000 Received: (qmail 25706 invoked by uid 22791); 7 Oct 2009 18:32:11 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 07 Oct 2009 18:32:06 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 990732BAC3D; Wed, 7 Oct 2009 14:32:04 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id wFz7pd92GiP2; Wed, 7 Oct 2009 14:32:04 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 62A4E2BAC39; Wed, 7 Oct 2009 14:32:04 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 985D1F589F; Wed, 7 Oct 2009 11:31:58 -0700 (PDT) Date: Wed, 07 Oct 2009 18:32:00 -0000 From: Joel Brobecker To: n179911 Cc: gdb@sourceware.org Subject: Re: How to configure gdb to support '--arch=i386' on Mac OS X Message-ID: <20091007183158.GI16338@adacore.com> References: <3b9893450910071109p19138faam7653bd1e030c57a4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3b9893450910071109p19138faam7653bd1e030c57a4@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-10/txt/msg00139.txt.bz2 > I have compiled gdb 7.0 on Mac OS X. And I have configured XCode to > use this new version of gdb 7.0. > > But when I start debug my XCode project it said gdb can't recognize > the option '--arch=i386'. Here is the log of my error: I suspect your Xcode is thinking it is running Apple's version of GDB, and is trying to tell GDB which arch to select when your binary is bi-arch. If you want to use the FSF GDB, you might have some luck adding that command line switch and ignoring it. See gdb/main.c. -- Joel