From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15138 invoked by alias); 20 Oct 2010 15:24:14 -0000 Received: (qmail 15125 invoked by uid 22791); 20 Oct 2010 15:24:13 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from nx.neverkill.us (HELO nx.neverkill.us) (193.34.68.112) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 20 Oct 2010 15:24:09 +0000 Received: from [127.0.0.1] (srv.neverkill.us [10.10.10.1]) by nx.neverkill.us (Postfix) with ESMTP id 3F76031367; Wed, 20 Oct 2010 17:24:07 +0200 (CEST) Subject: Re: gdb darwin target on Linux host? From: Peter Steiner To: Tristan Gingold Cc: gdb@sourceware.org In-Reply-To: <20101020151257.25F2D31366@nx.neverkill.us> References: <20101020135306.9C60531366@nx.neverkill.us> <20101020143016.6BE9131366@nx.neverkill.us> <20101020144225.2316031366@nx.neverkill.us> <20101020151257.25F2D31366@nx.neverkill.us> Content-Type: text/plain; charset="ISO-8859-1" Date: Wed, 20 Oct 2010 15:24:00 -0000 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Message-Id: <20101020152407.3F76031367@nx.neverkill.us> 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: 2010-10/txt/msg00084.txt.bz2 > > file /home/exchange/ls > > /home/exchange/ls: Mach-O fat file with 2 architectures > > You can't debug fat binaries. You have to extract the executable you really want to debug. > ok - but the packaged Apple darwin gdb (shipped with my install) CAN read the native binaries. So, what is the difference? Another/patched libbfd used by Apple? (e.g. http://www.opensource.apple.com/tarballs/gdb/gdb-1469.tar.gz gdb version is 6.3.50.20050815-cvs) however I do not want to debug natively (or my question here would be pointless), I want to cross-debug using a Linux host.