This is the mail archive of the
frysk@sourceware.org
mailing list for the frysk project.
Re: [SCM] master: Use libunwind cursor to get at CFA.
- From: Andrew Cagney <cagney at redhat dot com>
- To: Mark Wielaard <mwielaar at redhat dot com>
- Cc: frysk at sourceware dot org
- Date: Mon, 03 Dec 2007 11:19:50 -0500
- Subject: Re: [SCM] master: Use libunwind cursor to get at CFA.
- References: <20071203105946.11374.qmail@sourceware.org>
mark@sourceware.org wrote:
frysk-core/frysk/stack/ChangeLog
2007-12-03 Mark Wielaard <mwielaard@redhat.com>
* 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