From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20432 invoked by alias); 13 Oct 2009 07:53:16 -0000 Received: (qmail 20420 invoked by uid 22791); 13 Oct 2009 07:53:15 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (212.99.106.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Oct 2009 07:53:10 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 987E129000C; Tue, 13 Oct 2009 09:53:08 +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 63sxyehpXaeh; Tue, 13 Oct 2009 09:53:07 +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 ECD40290007; Tue, 13 Oct 2009 09:53:07 +0200 (CEST) Subject: Re: gdb 7.0 on darwin 10 Mime-Version: 1.0 (Apple Message framework v1076) Content-Type: text/plain; charset=iso-8859-1; format=flowed; delsp=yes From: Tristan Gingold In-Reply-To: <771A6A6C-7B2C-4110-9014-A12AB1DF4364@nordnet.fr> Date: Tue, 13 Oct 2009 07:53:00 -0000 Cc: gdb@sourceware.org Content-Transfer-Encoding: quoted-printable Message-Id: <9DB6A820-B50B-4D0D-ACAC-DEE5D46F16D4@adacore.com> References: <771A6A6C-7B2C-4110-9014-A12AB1DF4364@nordnet.fr> To: =?iso-8859-1?Q?Vincent_B=E9nony?= 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/msg00232.txt.bz2 On Oct 12, 2009, at 6:26 PM, Vincent B=E9nony wrote: > Hi there ! Hi, > I'm pretty impressed by the new functionalities of GDB 7.0, which=20=20 > works pretty well on my Linux box. But, I've some problem with the=20=20 > darwin version. > > I currently use an iMac under darwin 10 (Snow Leopard). > > First of all, it seems that the dyld struct used by gdb to catch=20=20 > dylib loading have changed: the version number was 1 under darwin 9,=20=20 > and is now 7. So, commands like "info sharedlibrary" do not work=20=20 > unless I change the DYLD_VERSION macro definition in gdb/solib-=20 > darwin.c file. By the way, by changing the definition on=20=20 > DYLD_VERSION and by testing everywhere in the code that version is=20=20 > less or equal to 7, I finally got gdb reading symbols of my dylib=20=20 > files correctly ! Thanks for the details. I will fix that. > But now, I've another problem: it seems that GDB do not handle=20=20 > coalesced sections, so symbols address are mostly wrong for=20=20 > functions defined in a header file. Did I missed something in=20=20 > arguments to give to configure script ? GDB doesn't handle well coalesced sections, dead-stripped binaries or=20=20 common symbols on Darwin. We are working on that. One possible work-around is to use a dsym file (see=20=20 dsymutil). Tristan.