Process Debugging questions

Jeremie Le Hen jeremie at le-hen.org
Mon Nov 20 22:10:02 UTC 2006


Hi Dag-Erling,

On Sat, Nov 11, 2006 at 11:51:57PM +0100, Dag-Erling Smørgrav wrote:
> trowa-4 <trowa-4 at yahoo.com.tw> writes:
> > FreeBSD provides the ptrace system call for controlling and
> > debugging the execution of a process.
> >
> > An alternative to the ptrace system call is the /proc filesystem.
> >
> > The functionality provided by the /proc filesystem is the same as
> > that provided by ptrace; if differs only in its interface.
> >
> > Are there having a better method or other method?
> 
> They both suck, for different reasons.  In theory, ptrace sucks less
> than proc, but it lacks some of proc's functionality, and fixing that
> is very hard.

Would you take a little time to tell what ptrace lacks and possibly
why it is so hard, please ?

Thank you.
-- 
Jeremie Le Hen
< jeremie at le-hen dot org >< ttz at chchile dot org >


More information about the freebsd-hackers mailing list