From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 988 invoked by alias); 19 Jun 2007 21:31:52 -0000 Received: (qmail 980 invoked by uid 22791); 19 Jun 2007 21:31:52 -0000 X-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,SPF_HELO_PASS,SPF_PASS,TW_DW X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 19 Jun 2007 21:31:50 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l5JLVmi0032426 for ; Tue, 19 Jun 2007 17:31:48 -0400 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l5JLVlwF006602; Tue, 19 Jun 2007 17:31:47 -0400 Received: from [172.16.14.55] (toner.toronto.redhat.com [172.16.14.55]) by pobox.toronto.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l5JLVlH7013245; Tue, 19 Jun 2007 17:31:47 -0400 Message-ID: <46784B43.3010204@redhat.com> Date: Tue, 19 Jun 2007 21:38:00 -0000 From: Sami Wagiaalla User-Agent: Thunderbird 1.5.0.12 (X11/20070530) MIME-Version: 1.0 To: Sami Wagiaalla CC: Roland McGrath , frysk Subject: Re: Dwarf expertise needed References: <20070619211151.0AAF24D05D3@magilla.localdomain> <46784A34.2030402@redhat.com> In-Reply-To: <46784A34.2030402@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2007-q2/txt/msg00343.txt.bz2 Sami Wagiaalla wrote: > >>> get_addrdie() does not return the correct die: >>> >> >> The libdw and libdwfl functions called "addrdie" give you the CU >> containing >> that address, as they are described to do. It sounds like you are >> expecting something different. >> > Okay it sounds like I missunderstood what addrdie does. I guess what I > am trying to do is find the narrowest scope which contains the given > pc. Is there a way to get all dies whos ranges contain the pc maybe ? > The problem I am trying to solve is given a pc find the > inlined/concrete function that contains it. nm... i didnt realize you could use get_scopes with an address.... I'll update the bug > > Thanx, > Sami