search for: on_accvio

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

2001 Jul 11
1
Porting MS Structured Exception Handling to Linux.
...st to figure out how to do all this I stumbled upond a gnu article on how to translate signals into Java exceptions. Based on that I came up with the following code: int i = 0; //Signal handler 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...