class ScopedThreadExceptionContext
Defined at line 1979 of file ../../zircon/kernel/include/kernel/thread.h
RAII helper that installs/removes an exception context and saves/restores user register state.
The class operates on the current thread.
When a thread takes an exception, this class is used to make user register state available to
debuggers and exception handlers.
Example Usage:
{
ScopedThreadExceptionContext context(...);
HandleException();
}
Note, ScopedThreadExceptionContext keeps track of whether the state has already been saved so
it's safe to nest them:
void Foo() {
ScopedThreadExceptionContext context(...);
Bar();
}
void Bar() {
ScopedThreadExceptionContext context(...);
Baz();
}
Public Methods
void ScopedThreadExceptionContext (const arch_exception_context_t * context)
Defined at line 1385 of file ../../zircon/kernel/kernel/thread.cc
void ~ScopedThreadExceptionContext ()
Defined at line 1396 of file ../../zircon/kernel/kernel/thread.cc
void ScopedThreadExceptionContext (const ScopedThreadExceptionContext & )
Defined at line 1983 of file ../../zircon/kernel/include/kernel/thread.h
void ScopedThreadExceptionContext (ScopedThreadExceptionContext && )
Defined at line 1983 of file ../../zircon/kernel/include/kernel/thread.h
ScopedThreadExceptionContext & operator= (const ScopedThreadExceptionContext & )
Defined at line 1983 of file ../../zircon/kernel/include/kernel/thread.h
ScopedThreadExceptionContext & operator= (ScopedThreadExceptionContext && )
Defined at line 1983 of file ../../zircon/kernel/include/kernel/thread.h