From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6773 invoked by alias); 3 Dec 2007 16:19:50 -0000 Received: (qmail 6765 invoked by uid 22791); 3 Dec 2007 16:19:49 -0000 X-Spam-Status: No, hits=-2.5 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; Mon, 03 Dec 2007 16:19:45 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.1) with ESMTP id lB3GJedo020842 for ; Mon, 3 Dec 2007 11:19:40 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id lB3GJeSb010024 for ; Mon, 3 Dec 2007 11:19:40 -0500 Received: from [127.0.0.1] (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id lB3GJcgG017125; Mon, 3 Dec 2007 11:19:39 -0500 Message-ID: <47542CA6.20509@redhat.com> Date: Mon, 03 Dec 2007 16:19:00 -0000 From: Andrew Cagney User-Agent: Thunderbird 1.5.0.12 (X11/20070530) MIME-Version: 1.0 To: Mark Wielaard CC: frysk@sourceware.org Subject: Re: [SCM] master: Use libunwind cursor to get at CFA. References: <20071203105946.11374.qmail@sourceware.org> In-Reply-To: <20071203105946.11374.qmail@sourceware.org> 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-q4/txt/msg00197.txt.bz2 mark@sourceware.org wrote: > frysk-core/frysk/stack/ChangeLog > 2007-12-03 Mark Wielaard > > * LibunwindFrame.java (getFrameIdentifier): Get CFA from cursor. > This isn't right. The confusion comes from what libunwind considers to be the cursor's CFA. It returns what you're more likely to recognize as the inner-to-cursor's CFA and not the cursor''s CFA. Effectively the current frame's SP, in fact: case UNW_X86_64_CFA: case UNW_X86_64_RSP: if (write) return -UNW_EREADONLYREG; *valp = c->dwarf.cfa; return 0; Andrew