freebsd-skq/usr.bin/gcore
Attilio Rao 2e7ecbfbc8 Change gcore in order to get rid of the procfs accesses and use FreeBSD's
specific sysctls and ptrace interfaces.
This change switches a bit gcore POLA that is summarized here:
- now gcore can recognize threads within the process and handle dumps
  on thread-scope
- the process to be analyzed will be stopped during its gcore run
- gcore may not work with processes which are actively being analyzed
  by gdb or truss
- the ptrace interface may cause syscalls to return EINTR, thus
  interferring with signals handling within the process

Side note: <janitor task> the interface can be further lifted in order to
get rid of the very last procfs interfaces remnants and made more
suitable for copying with sysctl/ptrace interface </janitor task>.

Obtained from:	Sandvine Incorporated
Reviewed by:	emaste, rwatson
Sponsored by:	Sandvine Incorporated
MFC:		1 month
2009-11-25 15:23:14 +00:00
..
elfcore.c Change gcore in order to get rid of the procfs accesses and use FreeBSD's 2009-11-25 15:23:14 +00:00
extern.h
gcore.1 Change gcore in order to get rid of the procfs accesses and use FreeBSD's 2009-11-25 15:23:14 +00:00
gcore.c Change gcore in order to get rid of the procfs accesses and use FreeBSD's 2009-11-25 15:23:14 +00:00
Makefile Change gcore in order to get rid of the procfs accesses and use FreeBSD's 2009-11-25 15:23:14 +00:00