[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

sys_ptrace



Hi there,

I need help on understanding and using the ptrace syscall. I've been
rtfming for some days, and still can't produce even a simple program that
will print "ops!" everytime the traced process does a syscall.

This is obviously not my objective, I actually need to code a special
purpose "debugger" that will trace a process and automagically display a
copy of it's state. gdb or another general purpose debuggers are out of
the question, I just want to code something that will fork, TRACEME, exec
the target program and stop it every once in a while to collect some info.

Pointers anyone? Example code anyone? CC me, I'm not on the list.

Thanks!
Fabio
( Fábio Olivé Leite                            olive@inf.ufrgs.br )
(      NEW -*- http://descartes.ucpel.tche.br/~olive -*- NEW      )
( Linux - Distributed Systems - Fault Tolerance - Security - /etc )
(        BC 50 7F 7A B9 2E 0A 26   91 8A D1 C0 B1 E4 DA A4        )


Reply to: