Re: siginfo of traced child to parent process

Daniel Jacobowitz (dan@debian.org)
Thu, 10 Apr 2003 18:06:27 -0400


On Thu, Apr 10, 2003 at 02:41:41PM -0700, Ranga Iyengar wrote:
> 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

There is in 2.5 - it's called PTRACE_GETSIGINFO. There isn't in 2.4.18
though.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/