From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3150 invoked by alias); 9 Oct 2009 13:05:09 -0000 Received: (qmail 3142 invoked by uid 22791); 9 Oct 2009 13:05:09 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (212.99.106.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 09 Oct 2009 13:05:00 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id AC1C2290011; Fri, 9 Oct 2009 15:04:58 +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 eJ6yiS9VnOKr; Fri, 9 Oct 2009 15:04:58 +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 21DF7290007; Fri, 9 Oct 2009 15:04:58 +0200 (CEST) Subject: Re: gdb-7.0 on osx Mime-Version: 1.0 (Apple Message framework v1076) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes From: Tristan Gingold In-Reply-To: <20091009125613.GA7568@bromo.med.uc.edu> Date: Fri, 09 Oct 2009 13:05:00 -0000 Cc: Tobias Hahn , gdb@sourceware.org Content-Transfer-Encoding: 7bit Message-Id: References: <847995BD-73DF-46CD-AFDE-25AB8A5A6E6D@ableton.com> <5D222CA0-6142-4B90-9F2D-7D381B1BB0FE@adacore.com> <4C3C8495-537E-4FEB-A133-92EE3BFF9CFF@ableton.com> <0A707FF0-60C1-4081-96C6-3FA69E31D03F@adacore.com> <20091009125613.GA7568@bromo.med.uc.edu> To: Jack Howarth 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/msg00176.txt.bz2 On Oct 9, 2009, at 2:56 PM, Jack Howarth wrote: > On Fri, Oct 09, 2009 at 10:04:20AM +0200, Tristan Gingold wrote: >> >> On Oct 8, 2009, at 6:56 PM, Tobias Hahn wrote: >>> Also, I have not yet managed to debug 32bit executables. I have >>> tried >>> various build options (i386-apple-darwin10, i686-apple-darwin10) but >>> none seemed to work. It always complains that it cannot read >>> mach-o-i386 files. >>> >>> Any ideas on this one? >> >> I forgot to say: if you configure gdb for i386-darwin, it should >> work. >> >> Tristan. > > Tristan, > I never got around to testing that alternative. Does a build > for i386-darwin properly load x86_64 binaries in gdb 7.0 or does > it suffer the same issue as the x86_64 darwin build did for > loading i386 binaries? It should. Before switching to Snow Leopard, I always built using the Apple gcc, which was an i386 gcc and I checked it could handle both i386 and x86_64. But you need to configure with --enable-64-bit-bfd (important!). Could you confirm ? Tristan.