linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* siginfo of traced child to parent process
@ 2003-04-10 21:41 Ranga Iyengar
  2003-04-10 22:06 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Ranga Iyengar @ 2003-04-10 21:41 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: siginfo of traced child to parent process
  2003-04-10 21:41 siginfo of traced child to parent process Ranga Iyengar
@ 2003-04-10 22:06 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2003-04-10 22:06 UTC (permalink / raw)
  To: Ranga Iyengar; +Cc: linux-kernel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-10 21:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-10 21:41 siginfo of traced child to parent process Ranga Iyengar
2003-04-10 22:06 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).