From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11280 invoked by alias); 1 May 2006 00:29:16 -0000 Received: (qmail 11270 invoked by uid 22791); 1 May 2006 00:29:15 -0000 X-Spam-Check-By: sourceware.org Received: from mail-out3.apple.com (HELO mail-out3.apple.com) (17.254.13.22) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 01 May 2006 00:29:12 +0000 Received: from relay5.apple.com (a17-128-113-35.apple.com [17.128.113.35]) by mail-out3.apple.com (8.12.11/8.12.11) with ESMTP id k410T8ij011078; Sun, 30 Apr 2006 17:29:08 -0700 (PDT) Received: from [17.219.211.186] (unknown [17.219.211.186]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by relay5.apple.com (Apple SCV relay) with ESMTP id 8209D324002; Sun, 30 Apr 2006 17:29:08 -0700 (PDT) In-Reply-To: <2119EFE1-B864-43C7-9847-279395E88148@andrew.cmu.edu> References: <2119EFE1-B864-43C7-9847-279395E88148@andrew.cmu.edu> Mime-Version: 1.0 (Apple Message framework v749.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <72556FFC-37B0-4DB3-8C35-B10A92C9F38F@apple.com> Cc: binutils@sourceware.org Content-Transfer-Encoding: 7bit From: Eric Christopher Subject: Re: libbfd Mac OS X support? Date: Mon, 01 May 2006 00:29:00 -0000 To: Ethan Tira-Thompson X-Mailer: Apple Mail (2.749.3) X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2006-05/txt/msg00001.txt.bz2 > ??:0 > However, I see GDB is somehow able to extract file/function info, > and afaik, it's using libbfd... > > 1. Which copy of bfd should I be linking against (i.e. the one in > gcc, or gdb, or binutils...?) There's a copy of bfd in the Apple version of gdb that has some functionality, but... > 2. Is bfd_find_nearest_line simply unimplemented on OS X, or is > there something deeper? Something deeper. Mostly bfd is unsupported for OS X unfortunately. > 3. Do you know how GDB extracts line info? (i.e. suggestions for > workaround/next step?) I'd suggest using the bfd work for OS X available from the Apple version of gdb. -eric