https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207359

--- Comment #6 from Mark Millard <[email protected]> ---
(In reply to Mark Millard from comment #5)

The uw_update_context_1 material would have been clearler if I'd listed another
line from the source code. So I do below.

fs->cfa_offset is not part of regs but is later used by uw_update_context_1
for:

  /* Compute this frame's CFA.  */
  switch (fs->cfa_how)
    {
    case CFA_REG_OFFSET:
      cfa = _Unwind_GetPtr (&orig_context, fs->cfa_reg);
      cfa += fs->cfa_offset;
      break;
. . .
  context->cfa = cfa;

That last explains how the fs->cfa_offset is supposed to end up involved in
later activity. (fs is local to each loop iteration; context's lifetime spans
across iterations.)


Also: I see that in at least one place I typed "12" instead of "128". Be
warned.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to