[Review] Remove procfs dependency of truss

Ed Maste ed.maste at gmail.com
Wed Apr 4 21:30:02 UTC 2007

On Wed, Apr 04, 2007 at 02:16:02PM +0200, Ed Schouten wrote:

> Indeed. Looking at sys/ptrace.h, there are a lot of instructions that
> aren't documented in the manpage:

Yeah, it's unfortunate that these aren't documented and ptrace seems to
be somewhat mysterious.

I ran across this while starting to work on switching gcore from procfs
to ptrace, in the context of getting it to understand threads.  (Procfs
provides /proc/pid/regs, which returns only the register set for the
first thread in the process.  There are other XXXKSE gotchas in the
procfs source too.)

Ed Maste

More information about the freebsd-current mailing list