From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1351 invoked by alias); 19 Jun 2007 15:18:10 -0000 Received: (qmail 1342 invoked by uid 22791); 19 Jun 2007 15:18:09 -0000 X-Spam-Status: No, hits=-2.3 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; Tue, 19 Jun 2007 15:18:06 +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 l5JFI3S6013801 for ; Tue, 19 Jun 2007 11:18:03 -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 l5JFI3du030363 for ; Tue, 19 Jun 2007 11:18:03 -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 l5JFI2f2026937 for ; Tue, 19 Jun 2007 11:18:02 -0400 Message-ID: <4677F3AA.2070904@redhat.com> Date: Tue, 19 Jun 2007 15:22:00 -0000 From: Sami Wagiaalla User-Agent: Thunderbird 1.5.0.12 (X11/20070530) MIME-Version: 1.0 To: frysk Subject: Dwarf expertise needed 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/msg00332.txt.bz2 So I have been stuck on a bug to do with inlined functions for a bit. Here goes: Attached are two programs funit-scopes.c, and funit-scopes-works.c. My original test case was simmilar to funit-scopes.c. What I would do is run the program until it crashes, get a stack back trace, go one frame out of the inner most frame, subptract 1 from the pc so that it is pointing at something before the return instruction. Using that frame address I look at the debug info. I get a Die, ask the Die for its scopes, and explore upwards in the hierarchy. For funit-scopes-works.c i get this: DW_TAG_inlined_subroutine name: second DW_TAG_compile_unit name: For funit-scopes.c I cannot even get a die corresponding to the frame address (I have verified that frame address is between hight_pc, and low_pc for that particular expansion of that inlined function ). Tow questions: Why doesnt funit-scopes.c work ? and Why does funit-scopes-works.c not print the tag for the subroutine within wich the function has been inlined ? funit-scopes is in cvs, and so is TestFrameScopes.java which performs the above test.