* Ed Maste <[EMAIL PROTECTED]> [070410 12:47] wrote: > On 10/04/07, Xin LI <[EMAIL PROTECTED]> wrote: > > Make use of ptrace(2) instead of procfs in truss(1), eliminating > > yet another need of an available /proc/ mount. > > I've started to do the same thing to gcore(1), in order to make it > work properly with threaded applications. I've removed its dependency > on /proc/pid/mem, /proc/pid/regs, and /proc/pid/fpregs. However, it > still relies on /proc/pid/status and /proc/pid/map which are not > directly available via ptrace(2). > > This would make the -s option to gcore redundant (since the process > will be stopped after attaching anyway). I don't know how useful a > core from a non-stopped process is, anyhow.
Very, very useful. Imagine a running program that's having some form of abnormal behavior but can't be stopped (for long) or allowed to core... -- - Alfred Perlstein _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "[EMAIL PROTECTED]"