Process Debugging questions

Dag-Erling Smørgrav des at des.no
Sat Nov 11 22:52:03 UTC 2006


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.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the freebsd-hackers mailing list