siginfo of traced child to parent process
I wanted to know if there is a way to get the siginfo_t of a child process from a parent process. The child process is traced by the parent process using ptrace system call and if the child is stopped because of SIGSEGV or SIGFPE, the address of the instruction that caused the exception is available to the child from the signal handler thro' the siginfo structure. Is there any way of getting this info(siginfo) to the parent. The parent attaches to the child in the same way 'gdb' attaches to the debugged programs.
I'm using linux kernel 2.4.18
Thanks
Ron
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
Quoted 12 lines · Ranga Iyengar
I wanted to know if there is a way to get the
siginfo_tof a child process from a parent process. The child process is traced by the parent process using ptrace system call and if the child is stopped because of SIGSEGV or SIGFPE, the address of the instruction that caused the exception is available to the child from the signal handler thro' the siginfo structure. Is there any way of getting this info(siginfo) to the parent. The parent attaches to the child in the same way 'gdb' attaches to the debugged programs.
Quoted 1 line
I'm using linux kernel 2.4.18
There is in 2.5 - it's called PTRACE_GETSIGINFO. There isn't in 2.4.18 though.
Signature · 2 lines
Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer