57 void*
xpc = (
void*) _mc->gregs[REG_EIP];
73 void*
xpc = (
void*) _mc->gregs[REG_EIP];
88 void*
xpc = (
void*) _mc->gregs[REG_EIP];
113 pc = (
u1 *) _mc->gregs[REG_EIP];
135 es->
pc = (
u1 *) _mc->gregs[REG_EIP];
136 es->
sp = (
u1 *) _mc->gregs[REG_ESP];
141 es->
intregs[i] = _mc->gregs[REG_EAX - i];
145 es->
fltregs[i] = 0xdeadbeefdeadbeefULL;
166 _mc->gregs[REG_EAX - i] = es->
intregs[i];
169 _mc->gregs[REG_EIP] = (
ptrint) es->
pc;
170 _mc->gregs[REG_ESP] = (
ptrint) es->
sp;
void md_signal_handler_sigsegv(int sig, siginfo_t *siginfo, void *_p)
NullPointerException signal handler for hardware null pointer check.
void md_signal_handler_sigill(int sig, siginfo_t *siginfo, void *_p)
Illegal Instruction signal handler for hardware exception checks.
struct sigcontext uc_mcontext
void md_signal_handler_sigfpe(int sig, siginfo_t *siginfo, void *_p)
void md_signal_handler_sigusr2(int sig, siginfo_t *siginfo, void *_p)
void md_executionstate_write(executionstate_t *es, void *context)
void md_executionstate_read(executionstate_t *es, void *context)
void trap_handle(int sig, void *xpc, void *context)
Handles the signal which is generated by trap instructions, caught by a signal handler and calls the ...
uintptr_t intregs[INT_REG_CNT]
double fltregs[FLT_REG_CNT]