CACAO
Macros | Functions
md-os.cpp File Reference

Go to the source code of this file.

Macros

#define __eax   eax
 
#define __ebx   ebx
 
#define __ecx   ecx
 
#define __edx   edx
 
#define __esi   esi
 
#define __edi   edi
 
#define __ebp   ebp
 
#define __esp   esp
 
#define __eip   eip
 
#define __ss   ss
 

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...
 

Macro Definition Documentation

#define __eax   eax

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

#define __ebp   ebp

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

#define __ebx   ebx

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

#define __ecx   ecx

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

#define __edi   edi

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

#define __edx   edx

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

#define __eip   eip

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

#define __esi   esi

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

#define __esp   esp

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

#define __ss   ss

Definition at line 58 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 141 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 179 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 81 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 123 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 64 of file md-os.cpp.

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

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