> Can anyone give me a hint about how to read the context (registers,
> memory) of a process stopped by SIGSTOP ?
>
> I know that debuggers use ptrace system calls. But the processes
> need to have a parent-child relationship ? Is it possible to do it via
> /proc ?
You can do a PTRACE_ATTACH to ptrace an arbitrary process. This is
how gdb and strace can attach to any running process.
Mike
-- .----------------------------------------------------------------------. | Mike Jagdis | Internet: mailto:mike@roan.co.uk | | Roan Technology Ltd. | | | 54A Peach Street, Wokingham | Telephone: +44 118 989 0403 | | RG40 1XG, ENGLAND | Fax: +44 118 989 1195 | `----------------------------------------------------------------------'