stack unwinding with boost::fcontext
19 Jun
2014
19 Jun
'14
3:49 p.m.
Context - 1.53.0 beta1 Context - 1.53.0 beta1 Context Struct fcontext_t and related functions Each instance of fcontext_t represents a context (CPU registers and stack space). View on www.boost.org Preview by Yahoo I'm wondering if there is any example showing how to do stack unwinding as described at the bottom of the above link as quoted below: " Stack unwinding Sometimes it is necessary to unwind the stack of an unfinished context to destroy local stack variables so they can release allocated resources (RAII pattern). The user is responsible for this task. " Thanks, Frank
20 Jun
20 Jun
12:46 p.m.
by throwing an special exception from the bottom (inner) stack frame and catching it at the outermost stackframe (trampoline function)
3800
Age (days ago)
3801
Last active (days ago)
1 comments
2 participants
participants (2)
-
David Frank
-
Oliver Kowalke