libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [libunwind] Cursor copying


From: David Mosberger
Subject: RE: [libunwind] Cursor copying
Date: Mon, 16 Aug 2004 07:48:50 -0700

>>>>> On Mon, 16 Aug 2004 15:31:36 +0100, "Thomas Hallgren" <address@hidden> 
>>>>> said:

  Thomas> Apparently, in our current code (not using libunwind) we
  Thomas> make copies to be able to restore any side effects on the
  Thomas> original context that might have been caused by unwinding.

Ah, I see.

  Thomas> From your statement and the suggested "reverse unwind"
  Thomas> approach in the overview I take it unw_step() will only
  Thomas> affect the cursor and not the context?

That's correct.  That was one reason for making the cursor vs. context
split.

  Thomas> If that's the case, a shallow copy will suffice.

Great!

  Thomas> It's a bit unclear to me what functions that affect the
  Thomas> cursor and what functions that affect the context. Aside
  Thomas> from unw_set_reg and unw_set_fpreg, are there any?

Only the following may affect the context:

        unw_getcontext()
        unw_set_reg()
        unw_set_fpreg()
        unw_resume()

I _think_ that's the complete list.

        --david


reply via email to

[Prev in Thread] Current Thread [Next in Thread]