From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17916 invoked by alias); 7 Oct 2009 21:22:33 -0000 Received: (qmail 17907 invoked by uid 22791); 7 Oct 2009 21:22:32 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 07 Oct 2009 21:22:27 +0000 Received: (qmail 2714 invoked from network); 7 Oct 2009 21:22:26 -0000 Received: from unknown (HELO macbook-2.local) (stan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 7 Oct 2009 21:22:26 -0000 Message-ID: <4ACD068C.8080101@codesourcery.com> Date: Wed, 07 Oct 2009 21:22:00 -0000 From: Stan Shebs User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: Michael Snyder CC: n179911 , "gdb@sourceware.org" Subject: Re: How to configure gdb to support '--arch=i386' on Mac OS X References: <3b9893450910071109p19138faam7653bd1e030c57a4@mail.gmail.com> <4ACCDE85.7080009@vmware.com> <3b9893450910071310s5225e440pb1b6eaa1d62f69db@mail.gmail.com> <3b9893450910071326h41d343dfja7797b4e51744e2e@mail.gmail.com> <4ACD020F.2020907@vmware.com> In-Reply-To: <4ACD020F.2020907@vmware.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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/msg00155.txt.bz2 Michael Snyder wrote: > Yeahhhh, this isn't going to work. > > Your binary is in... I forget what it's called -- oh, "mach-o" format. > Our (fsf) gdb does not know how to read that file format. And it > would be a huge job to port over the changes in apple gdb that tell > it how to read mach-o files (besides the fact that they are "fat" > files, or at least potentially might be). m The Mach-O part does work in 7.0, thanks to Tristan and AdaCore (check out gdb/machoread.c). I don't think fatness-handling is there, although at the Xcode level one has to specifically ask for fat builds anyway, so one could avoid that particular obstacle and thus be well-positioned to smack one's face into the next wall. :-) Stan