search for: sigcontext_struct

Displaying 1 result from an estimated 1 matches for "sigcontext_struct".

2001 Jul 11
1
Porting MS Structured Exception Handling to Linux.
...er function. The remmed out args reflect my attempt to make this work with both POSIX.1 and POSIX.4 void on_accvio(int signo/*, siginfo_t *info, void *ignored*/) { printf ("[%d] - on_accvio() : entered %d\n", pthread_self(), i++); void **_p = (void **)&signo; throw true; struct sigcontext_struct *_regs = (struct sigcontext_struct *)++_p; register unsigned long _ebp = _regs->ebp; register unsigned long _eip = _regs->eip; asm volatile ("mov %0, (%%ebp); mov %1, 4(%%ebp)" : : "r"(_ebp), "r"(_eip)); //These are remmed out because I was testing stuff. //...