This is the mail archive of the frysk@sourceware.org mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [SCM] master: Use libunwind cursor to get at CFA.


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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]