From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31636 invoked by alias); 7 Oct 2009 20:20:07 -0000 Received: (qmail 31602 invoked by uid 22791); 7 Oct 2009 20:20:05 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 07 Oct 2009 20:20:02 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id E474210EAA; Wed, 7 Oct 2009 20:21:19 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id AEF2610E9F; Wed, 7 Oct 2009 20:21:19 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1MvczP-0005zw-Ne; Wed, 07 Oct 2009 16:19:59 -0400 Date: Wed, 07 Oct 2009 20:20:00 -0000 From: Daniel Jacobowitz To: n179911 Cc: Michael Snyder , "gdb@sourceware.org" Subject: Re: How to configure gdb to support '--arch=i386' on Mac OS X Message-ID: <20091007201959.GA23000@caradoc.them.org> Mail-Followup-To: n179911 , Michael Snyder , "gdb@sourceware.org" References: <3b9893450910071109p19138faam7653bd1e030c57a4@mail.gmail.com> <4ACCDE85.7080009@vmware.com> <3b9893450910071310s5225e440pb1b6eaa1d62f69db@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3b9893450910071310s5225e440pb1b6eaa1d62f69db@mail.gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) 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/msg00144.txt.bz2 On Wed, Oct 07, 2009 at 01:10:00PM -0700, n179911 wrote: > Thank you. You are right. > > The gdb comes with apple has '-arch' option, but gdb 7.0 does not. > > $ /usr/bin/gdb --help > --translate Debug applications running under translation. > -arch i386|armv6|x86_64|ppc Specify a gdb targetting a specific > architecture > > So should I do what Joel Brobecker suggested in adding that option in > gdb/main.c? That is very unlikely to help. Last I looked, you can't use the FSF GDB with Xcode; Apple has made too many changes to their version. -- Daniel Jacobowitz CodeSourcery