From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27504 invoked by alias); 5 Jul 2005 12:15:25 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 27488 invoked by uid 22791); 5 Jul 2005 12:15:22 -0000 Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 05 Jul 2005 12:15:22 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j65CFKGw032382; Tue, 5 Jul 2005 08:15:20 -0400 Received: from pobox.surrey.redhat.com (pobox.surrey.redhat.com [172.16.10.17]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j65CFJV28898; Tue, 5 Jul 2005 08:15:19 -0400 Received: from [172.31.0.98] (vpn83-124.boston.redhat.com [172.16.83.124]) by pobox.surrey.redhat.com (8.12.8/8.12.8) with ESMTP id j65CFB3N011764; Tue, 5 Jul 2005 13:15:15 +0100 Message-ID: <42CA7AB3.50801@redhat.com> Date: Tue, 05 Jul 2005 12:15:00 -0000 From: Nick Clifton User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) MIME-Version: 1.0 To: Jeff Baker CC: "'binutils@sourceware.org'" Subject: Re: addr2line with stabs again References: <1578FF984ABAD411AFA5000102C4BB5B0F9EBA19@nimbus.ott.qnx.com> In-Reply-To: <1578FF984ABAD411AFA5000102C4BB5B0F9EBA19@nimbus.ott.qnx.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-07/txt/msg00095.txt.bz2 Hi Jeff, > With stabs debugging addr2line seems to walk backward in the code as far as > it has to in order to find line number information. The net effect is that > if you ask for the line number of an address inside a function that was > linked in from a static lib that didn't have debug info you will get the > source file and line number of whatever the last debug info is before that > address. With dwarf-2 you get '??:0'. > > As a first step we only need to know if this is expected from stabs or if > this is a bug. Oh it is a bug alright. It may well have been fixed though as Fred FIsh has been doing some work in this area. Please could you try downloading the latest binutils sources and trying them. If that does not fix the problem then please could you file a bug report ? Cheers Nick