CACAO
Functions
md-os.cpp File Reference

Go to the source code of this file.

Functions

void md_signal_handler_sigsegv (int sig, siginfo_t *siginfo, void *_p)
 Signal handler for hardware exceptions. More...
 
void md_signal_handler_sigfpe (int sig, siginfo_t *siginfo, void *_p)
 Signal handler for hardware divide by zero (ArithmeticException) check. More...
 
void md_signal_handler_sigusr2 (int sig, siginfo_t *siginfo, void *_p)
 
void md_signal_handler_sigill (int sig, siginfo_t *siginfo, void *_p)
 Signal handler for hardware patcher traps (ud2). More...
 
void md_executionstate_read (executionstate_t *es, void *context)
 Read the given context into an executionstate. More...
 
void md_executionstate_write (executionstate_t *es, void *context)
 Write the given executionstate back to the context. More...
 

Function Documentation

void md_executionstate_read ( executionstate_t es,
void context 
)

Read the given context into an executionstate.

Parameters
esexecution state
contextmachine context

Definition at line 126 of file md-os.cpp.

void md_executionstate_write ( executionstate_t es,
void context 
)

Write the given executionstate back to the context.

Parameters
esexecution state
contextmachine context

Definition at line 167 of file md-os.cpp.

void md_signal_handler_sigfpe ( int  sig,
siginfo_t *  siginfo,
void _p 
)

Signal handler for hardware divide by zero (ArithmeticException) check.

Definition at line 66 of file md-os.cpp.

void md_signal_handler_sigill ( int  sig,
siginfo_t *  siginfo,
void _p 
)

Signal handler for hardware patcher traps (ud2).

Definition at line 108 of file md-os.cpp.

void md_signal_handler_sigsegv ( int  sig,
siginfo_t *  siginfo,
void _p 
)

Signal handler for hardware exceptions.

NullPointerException signal handler for hardware null pointer check.

Definition at line 49 of file md-os.cpp.

void md_signal_handler_sigusr2 ( int  sig,
siginfo_t *  siginfo,
void _p 
)

Definition at line 85 of file md-os.cpp.