From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8195 invoked by alias); 7 Oct 2009 23:18:17 -0000 Received: (qmail 8183 invoked by uid 22791); 7 Oct 2009 23:18:17 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from bromo.med.uc.edu (HELO bromo.med.uc.edu) (129.137.3.146) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Wed, 07 Oct 2009 23:18:12 +0000 Received: from bromo.med.uc.edu (localhost.localdomain [127.0.0.1]) by bromo.med.uc.edu (Postfix) with ESMTP id 186EBB005E; Wed, 7 Oct 2009 19:18:10 -0400 (EDT) Received: (from howarth@localhost) by bromo.med.uc.edu (8.14.3/8.14.3/Submit) id n97NI9Mi022003; Wed, 7 Oct 2009 19:18:09 -0400 Date: Wed, 07 Oct 2009 23:18:00 -0000 From: Jack Howarth To: Stan Shebs Cc: Michael Snyder , n179911 , "gdb@sourceware.org" Subject: Re: How to configure gdb to support '--arch=i386' on Mac OS X Message-ID: <20091007231809.GA21992@bromo.med.uc.edu> References: <3b9893450910071109p19138faam7653bd1e030c57a4@mail.gmail.com> <4ACCDE85.7080009@vmware.com> <3b9893450910071310s5225e440pb1b6eaa1d62f69db@mail.gmail.com> <3b9893450910071326h41d343dfja7797b4e51744e2e@mail.gmail.com> <4ACD020F.2020907@vmware.com> <4ACD068C.8080101@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4ACD068C.8080101@codesourcery.com> User-Agent: Mutt/1.5.18 (2008-05-17) 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/msg00156.txt.bz2 On Wed, Oct 07, 2009 at 02:22:20PM -0700, Stan Shebs wrote: > 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 > Stan, I am puzzled about the fact that the current x86_64-apple-darwin10 build of FSF gdb 7.0 is unable to load i386 binaries like x86_64 gdb can under linux. Do you think this should be possible without resorting to fat-binaries for darwin? Jack