From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8127 invoked by alias); 1 Oct 2009 11:29:45 -0000 Received: (qmail 8117 invoked by uid 22791); 1 Oct 2009 11:29:45 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp3.ugent.be (HELO smtp3.UGent.be) (157.193.49.127) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 01 Oct 2009 11:29:37 +0000 Received: from localhost (mcheck2.ugent.be [157.193.49.249]) by smtp3.UGent.be (Postfix) with ESMTP id 8B31A147A5E for ; Thu, 1 Oct 2009 13:29:35 +0200 (CEST) Received: from smtp3.UGent.be ([157.193.49.127]) by localhost (mcheck2.ugent.be [157.193.43.11]) (amavisd-new, port 10024) with ESMTP id 41IpIne84Gbo for ; Thu, 1 Oct 2009 13:29:32 +0200 (CEST) Received: from mail.elis.ugent.be (mail.elis.UGent.be [157.193.206.48]) by smtp3.UGent.be (Postfix) with ESMTP id 79051147A36 for ; Thu, 1 Oct 2009 13:29:32 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.elis.ugent.be (Postfix) with ESMTP id D6758918F1E for ; Thu, 1 Oct 2009 13:29:31 +0200 (CEST) Received: from mail.elis.ugent.be ([127.0.0.1]) by localhost (mail.elis.ugent.be [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id R9wGwlQjdlU0 for ; Thu, 1 Oct 2009 13:29:28 +0200 (CEST) Received: from bigmac.elis.UGent.be (bigmac.elis.UGent.be [157.193.206.33]) by mail.elis.ugent.be (Postfix) with ESMTP id 9F231918F19 for ; Thu, 1 Oct 2009 13:29:28 +0200 (CEST) Message-Id: <8A12DBCB-8C04-4FAD-85ED-2447CD01F1ED@elis.ugent.be> From: Jonas Maebe To: gdb@sourceware.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Subject: Re: gdb seems to be broken on darwin 10.5.8 and later Date: Thu, 01 Oct 2009 11:29:00 -0000 References: <20090930162038.GA7190@bromo.med.uc.edu> X-j-chkmail-Enveloppe: 4AC4929B.006/157.193.206.48/mail.elis.UGent.be/mail.elis.ugent.be/ X-j-chkmail-Score: MSGID : 4AC4929B.006 on smtp3.UGent.be : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Status: Ham 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/msg00013.txt.bz2 On 30 Sep 2009, at 18:20, Jack Howarth wrote: > Now gdb errors out earlier and claims that darwin executables > aren't valid executable files. Is anyone else seeing that on > darwin? Since you mentioned later that you are on 10.6, might the problem be that previously you only tested gdb on programs compiled under 10.5.x or with "-mmacosx-version-min 10.5" (or earlier), while you are now trying with a program compiled on and for 10.6? Apple added/changed some things to the Mach-O object format in 10.6 (just like in 10.5), and e.g. (some?) binaries compiled for 10.6 are not recognised as valid executables at all on 10.5 or earlier. gdb might be confused for similar reasons. You may want to try compiling your program with "-mmacosx-version-min 10.5" and check again. Jonas