CACAO
Macros | Functions
md-os.cpp File Reference

Go to the source code of this file.

Macros

#define _GNU_SOURCE
 

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_sigill (int sig, siginfo_t *siginfo, void *_p)
 Signal handler for hardware patcher traps (ud2). More...
 
void md_signal_handler_sigusr2 (int sig, siginfo_t *siginfo, void *_p)
 
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...
 

Macro Definition Documentation

#define _GNU_SOURCE

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

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 125 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 155 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 68 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 83 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 52 of file md-os.cpp.

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

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