From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8461 invoked by alias); 20 Oct 2010 15:12:55 -0000 Received: (qmail 8452 invoked by uid 22791); 20 Oct 2010 15:12:55 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 20 Oct 2010 15:12:48 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 23160CB0272; Wed, 20 Oct 2010 17:12:46 +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 XQm8rFJV0RhI; Wed, 20 Oct 2010 17:12:46 +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 11F50CB0224; Wed, 20 Oct 2010 17:12:46 +0200 (CEST) Subject: Re: gdb darwin target on Linux host? Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii From: Tristan Gingold In-Reply-To: <20101020144225.2316031366@nx.neverkill.us> Date: Wed, 20 Oct 2010 15:12:00 -0000 Cc: gdb@sourceware.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20101020135306.9C60531366@nx.neverkill.us> <20101020143016.6BE9131366@nx.neverkill.us> <20101020144225.2316031366@nx.neverkill.us> To: Peter Steiner 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: 2010-10/txt/msg00082.txt.bz2 On Oct 20, 2010, at 4:42 PM, Peter Steiner wrote: > On Wed, 2010-10-20 at 16:20 +0200, Tristan Gingold wrote: >> Could you post the log messages ? I suppose that if no binary is >> built, then an error has occurred. >>=20 >> Not sure why you try to build such a tool, as it would be basically >> useless to debug. > "/home/exchange/ls": not in executable format: File format not > recognized > Setting up the environment for debugging gdb. >=20 > WHY it says: >=20 > "/home/exchange/ls": not in executable format: File format not > recognized >=20 > ? >=20 > as I built for the darwin target? > 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 reall= y want to debug.