From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2338 invoked by alias); 19 May 2005 15:18: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 1663 invoked from network); 19 May 2005 15:18:04 -0000 Received: from unknown (HELO nimbus.ott.qnx.com) (209.226.137.76) by sourceware.org with SMTP; 19 May 2005 15:18:04 -0000 Received: by nimbus.ott.qnx.com with Internet Mail Service (5.5.2653.19) id ; Thu, 19 May 2005 11:17:58 -0400 Message-ID: <1578FF984ABAD411AFA5000102C4BB5B0F9EBA19@nimbus.ott.qnx.com> From: Jeff Baker To: "'binutils@sourceware.org'" Subject: addr2line with stabs again Date: Thu, 19 May 2005 16:37:00 -0000 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_000_01C55C85.EFE2979C" X-SW-Source: 2005-05/txt/msg00599.txt.bz2 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_000_01C55C85.EFE2979C Content-Type: text/plain Content-length: 836 I posted about this a while ago but we're running into it again. Apparently it appeared to work with GCC 3.3.5 because we use dwarf-2 as the default instead of stabs. 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. I have confirmed this behaviour with the 2.16 binutils on Fedora Core 2 with GCC 3.3.3 as well as on Neutrino with GCC 3.3.5. I have attached a test case as well. ------_=_NextPart_000_01C55C85.EFE2979C Content-Type: application/octet-stream; name="stabs_testcase.tgz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="stabs_testcase.tgz" Content-length: 976 H4sIAMKrjEIAA+2XXU/bMBSGe1v/inOBRPkIi90klcImxMoumGCbkHY1TcNx 3DYjJFU+AAn47zv5dlsEN6UIzc8FcfweHzs+fpOSZtxL/2QyzQRP5Yfea2Ca ljmybbyaJqO0vNKRWV5retRk1pAy23GwnzLHcXpgv8pqlsjTjCcAven8+bhM ilkg000saZOki/Xn8/mBWPccJjWfrf+Qjbr6Uwvjhw4d9sBc90Ke4j+v/00c +ODHkzwSKQyKux24J/3insLA2jms2gwGNrYfCQmiDK55EMGgaPFkKvZBzHAL d7F98+v3DsHhdcJBMTyRWZ5EQNvRdb6iGZXRRcvfB4nBOFucwMCHT2Aegg8f IcLL3h4u6rHWZKVJ1Ea7qMpGVSd66219Nyz5v6hNGHjrfQe85H/Guve/bTOM tyzL0f7fBI0hqWrImzjkWRBKKC2+Dx5avDMnrwzI0YCsMCBfsKdXqV5lXW9B E5UmKk1o4749S/4/51dygpVf6xwv+J+i8Tv/W8PC/0Nma/9vgvEYPTkVghxf YIMn5Pjk5IKdnX77Utz6fsLCIJLk++evJz/Pf2Bf7P318+s5ITwM3X5xcAjB L0bz4eAuNM2Y9Lfujy8ewUhAjVADSHX+8GenuxjT9ldpxmNMMwdjWvbvqTIY ZwdghPVQMOJOJMS/5cnkifRt/1L6st9gqr6avxUJKZ7f7bcTKlIfzwuOLYBT yGZBdIV/JUziMIxvg2gK6SzOQx+8OJtBnGfzPIOjI9esxpR715QCFye7pwLz 7nLrvq4ISneK9ADTRM7rN/oDCMxpTCgY/jZsX67mbJe7mrOTXshJ2nJ2pRft poquDwhRyuZC+b9GG9hUFkeUAm60egaIUpGVoU3VlLELBSYilDxy8UtzjUuH 3QPljCgPqp4Q/SHSaDQajUaj0Wg0Go1Go9FoNBqNRvNe+QetfHjRACgAAA== ------_=_NextPart_000_01C55C85.EFE2979C--