From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32597 invoked by alias); 7 Oct 2009 20:21:45 -0000 Received: (qmail 32586 invoked by uid 22791); 7 Oct 2009 20:21:44 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-yw0-f171.google.com (HELO mail-yw0-f171.google.com) (209.85.211.171) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 07 Oct 2009 20:21:39 +0000 Received: by ywh1 with SMTP id 1so4674586ywh.18 for ; Wed, 07 Oct 2009 13:21:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.90.216.7 with SMTP id o7mr224470agg.45.1254946897193; Wed, 07 Oct 2009 13:21:37 -0700 (PDT) In-Reply-To: <20091007201959.GA23000@caradoc.them.org> References: <3b9893450910071109p19138faam7653bd1e030c57a4@mail.gmail.com> <4ACCDE85.7080009@vmware.com> <3b9893450910071310s5225e440pb1b6eaa1d62f69db@mail.gmail.com> <20091007201959.GA23000@caradoc.them.org> Date: Wed, 07 Oct 2009 20:21:00 -0000 Message-ID: <3b9893450910071321s2e58e036ye9000d8b1ee08333@mail.gmail.com> Subject: Re: How to configure gdb to support '--arch=i386' on Mac OS X From: n179911 To: n179911 , Michael Snyder , "gdb@sourceware.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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/msg00145.txt.bz2 From http://developer.apple.com/mac/library/documentation/DeveloperTools/Referen= ce/XcodeUserDefaultRef/100-Xcode_User_Defaults/UserDefaultRef.html#//apple%= 5Fref/doc/uid/TP40005535-CH3-SW54 it mentions I can switch a different GDB in xcode. On Wed, Oct 7, 2009 at 1:19 PM, Daniel Jacobowitz wrote: > On Wed, Oct 07, 2009 at 01:10:00PM -0700, n179911 wrote: >> Thank you. You are right. >> >> The gdb comes with apple has '-arch' =A0option, but gdb 7.0 does not. >> >> =A0$ /usr/bin/gdb --help >> =A0 --translate =A0 =A0 =A0 =A0Debug applications running under translat= ion. >> =A0 -arch i386|armv6|x86_64|ppc =A0 =A0 Specify a gdb targetting a speci= fic >> architecture >> >> So should I do what Joel Brobecker suggested in adding that option in >> gdb/main.c? > > That is very unlikely to help. =A0Last I looked, you can't use the FSF > GDB with Xcode; Apple has made too many changes to their version. > > > -- > Daniel Jacobowitz > CodeSourcery >