From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28717 invoked by alias); 7 Oct 2009 18:35:34 -0000 Received: (qmail 28707 invoked by uid 22791); 7 Oct 2009 18:35:34 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp-outbound-1.vmware.com (HELO smtp-outbound-1.vmware.com) (65.115.85.69) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 07 Oct 2009 18:35:30 +0000 Received: from mailhost3.vmware.com (mailhost3.vmware.com [10.16.27.45]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id F3C08A01C; Wed, 7 Oct 2009 11:35:27 -0700 (PDT) Received: from [10.20.94.141] (msnyder-server.eng.vmware.com [10.20.94.141]) by mailhost3.vmware.com (Postfix) with ESMTP id E8980CD96C; Wed, 7 Oct 2009 11:35:27 -0700 (PDT) Message-ID: <4ACCDE85.7080009@vmware.com> Date: Wed, 07 Oct 2009 18:35:00 -0000 From: Michael Snyder User-Agent: Thunderbird 1.5.0.12 (X11/20080411) MIME-Version: 1.0 To: n179911 CC: "gdb@sourceware.org" Subject: Re: How to configure gdb to support '--arch=i386' on Mac OS X References: <3b9893450910071109p19138faam7653bd1e030c57a4@mail.gmail.com> In-Reply-To: <3b9893450910071109p19138faam7653bd1e030c57a4@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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/msg00140.txt.bz2 n179911 wrote: > Hi, > > 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: > > [Session started at 2009-10-07 11:00:43 -0700.] > /Users/n179911/bin/gdb/bin/gdb: unrecognized option `--arch=i386' > Use `/Users/n179911/bin/gdb/bin/gdb --help' for a complete list of options. > > The Debugger has exited with status 1.The Debugger has exited with status > > Can you please tell me how to build gdb to support '--arch-i386' option? I don't think this has ever been a command line option in fsf gdb. Maybe it is one that was added to Apple's version of gdb. Try running `/Users/n179911/bin/gdb/bin/gdb --help', and then run the same command using your installed gdb that came with Mac OS. My guess is that the Mac version will list "--arch" among the command line options, but the fsf version will not (mine doesn't).