From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15011 invoked by alias); 19 Jul 2007 15:40:23 -0000 Received: (qmail 15004 invoked by uid 22791); 19 Jul 2007 15:40:23 -0000 X-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,SPF_HELO_PASS,SPF_PASS 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; Thu, 19 Jul 2007 15:40:21 +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 l6JFeGsn018329 for ; Thu, 19 Jul 2007 11:40:16 -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 l6JFeF8R015997; Thu, 19 Jul 2007 11:40:15 -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 l6JFeFGm024387; Thu, 19 Jul 2007 11:40:15 -0400 Message-ID: <469F85DF.4050000@redhat.com> Date: Thu, 19 Jul 2007 15:40:00 -0000 From: Sami Wagiaalla User-Agent: Thunderbird 1.5.0.12 (X11/20070530) MIME-Version: 1.0 To: Roland McGrath CC: frysk Subject: Re: Dwarf expertise needed References: <20070718090247.A712B4D05CF@magilla.localdomain> In-Reply-To: <20070718090247.A712B4D05CF@magilla.localdomain> 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-q3/txt/msg00160.txt.bz2 > [...] if you are displaying the running code in an inlined instance > and want to visualize "this code inlined into here", In the future we are going to do that. > or are synthesizing > fictional call frames for a semantic backtrace including inlined calls. > This is what I am currently doing :). But something else just occurred to me. The way I find a function (regular not inlined ) corresponding to a frame is I call dwarf_getscopes at frame address, then traverse up the scopes list until I hit the first DW_TAG_Subprogram. For this I will also need a physical scope list rather than a lexical one, because if a function in the list happens to be inlined between the narrowest scope and the Subprogram I will not find the reference to my Subprogram.