Howdie list,
I'm trying to build the be-old, end-all exception signal signal handler for SIGSEGV, SIGILL, SIGFPE and their ilk. One
thing that will be useful to do in such a handler is dump the state of the CPU registers when and where the program
segfauled etc. Sadly, despite zealous code
On Sun, Jul 02, 2006 at 02:12:39PM +0300, Gilad Ben-Yossef wrote:
Howdie list,
I'm trying to build the be-old, end-all exception signal signal handler for
SIGSEGV, SIGILL, SIGFPE and their ilk. One thing that will be useful to do
in such a handler is dump the state of the CPU registers
The only way I know of is becoming a registered debugger with ptrace, and
using the uber ability:
ptrace(( __ptrace_request )PTRACE_GETREGS, pid, 0, regs)
If the program is not being debugged externally, you can try to attach inside
the handler, if you succeed, getting the registers.
Hope
Muli Ben-Yehuda wrote:
On Sun, Jul 02, 2006 at 02:12:39PM +0300, Gilad Ben-Yossef wrote:
I'm trying to build the be-old, end-all exception signal signal handler for
SIGSEGV, SIGILL, SIGFPE and their ilk. One thing that will be useful to do
in such a handler is dump the state of the CPU
On 02/07/06, Gilad Ben-Yossef [EMAIL PROTECTED] wrote:
Muli Ben-Yehuda wrote:
On Sun, Jul 02, 2006 at 02:12:39PM +0300, Gilad Ben-Yossef wrote:
I'm trying to build the be-old, end-all exception signal signal handler for
SIGSEGV, SIGILL, SIGFPE and their ilk. One thing that will be useful to do