From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1817 invoked by alias); 12 Oct 2009 16:26:26 -0000 Received: (qmail 1788 invoked by uid 22791); 12 Oct 2009 16:26:25 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from fg-out-1718.google.com (HELO fg-out-1718.google.com) (72.14.220.156) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 12 Oct 2009 16:26:20 +0000 Received: by fg-out-1718.google.com with SMTP id 19so305307fgg.12 for ; Mon, 12 Oct 2009 09:26:18 -0700 (PDT) Received: by 10.86.227.1 with SMTP id z1mr5438093fgg.56.1255364778595; Mon, 12 Oct 2009 09:26:18 -0700 (PDT) Received: from vbenony-imac.arobas-music.com (LAubervilliers-153-52-23-66.w217-128.abo.wanadoo.fr [217.128.118.66]) by mx.google.com with ESMTPS id d4sm37408fga.26.2009.10.12.09.26.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 12 Oct 2009 09:26:17 -0700 (PDT) From: "=?iso-8859-1?Q?Vincent_B=E9nony?=" Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Subject: gdb 7.0 on darwin 10 Date: Mon, 12 Oct 2009 16:26:00 -0000 Message-Id: <771A6A6C-7B2C-4110-9014-A12AB1DF4364@nordnet.fr> To: gdb@sourceware.org Mime-Version: 1.0 (Apple Message framework v1076) 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/msg00210.txt.bz2 Hi there ! I'm pretty impressed by the new functionalities of GDB 7.0, which works pretty well on my Linux box. But, I've some problem with the 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 dylib loading have changed: the version number was 1 under darwin 9, and is now 7. So, commands like "info sharedlibrary" do not work unless I change the DYLD_VERSION macro definition in gdb/solib-darwin.c file. By the way, by changing the definition on DYLD_VERSION and by testing everywhere in the code that version is less or equal to 7, I finally got gdb reading symbols of my dylib files correctly ! But now, I've another problem: it seems that GDB do not handle coalesced sections, so symbols address are mostly wrong for functions defined in a header file. Did I missed something in arguments to give to configure script ? I used : ./configure --disable-werror I already tried "--host=i386-apple-darwin9 --build=i386-apple-darwin9 --target=i386-apple-darwin9" Note that I only want to debug 32 bits applications, so I do not used --enable-64-bit-bfd, but this switch do not change anything in MachO loading. Thank you