From owner-cvs-src-old@FreeBSD.ORG Tue Dec 28 19:27:07 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 95CA410656C1 for ; Tue, 28 Dec 2010 19:27:07 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 82D0B8FC14 for ; Tue, 28 Dec 2010 19:27:07 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id oBSJR7Xi052829 for ; Tue, 28 Dec 2010 19:27:07 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id oBSJR7L1052828 for cvs-src-old@freebsd.org; Tue, 28 Dec 2010 19:27:07 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <201012281927.oBSJR7L1052828@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Tue, 28 Dec 2010 19:26:57 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 Subject: cvs commit: src/usr.bin/gcore Makefile elfcore.c extern.h gcore.1 gcore.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Dec 2010 19:27:07 -0000 jhb 2010-12-28 19:26:57 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) usr.bin/gcore Makefile elfcore.c extern.h gcore.1 gcore.c Log: SVN rev 216771 on 2010-12-28 19:26:57Z by jhb MFC 199805,203532,204329,210063,210065: - 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 - Fix gcore so that it can have the '-s' flag without hanging. - Fix the way the segments are included in the gcore outputs (with the default invokation): - Right now if segments are not writable are not included. Remove this. - Right now if a segment is mapped with NOCORE the check is not honoured. Change this by checking the newly added flag, from libutil, KVME_FLAG_NOCOREDUMP. Besides that, add a new flag (-f) that forces a 'full' dump of all the segments excluding just the malformed ones. This might be used very carefully as, among the reported segments, there could be memory mapped areas that could be vital to program execution. Revision Changes Path 1.9.10.1 +2 -0 src/usr.bin/gcore/Makefile 1.19.2.3 +169 -181 src/usr.bin/gcore/elfcore.c 1.4.24.1 +4 -0 src/usr.bin/gcore/extern.h 1.15.18.1 +18 -14 src/usr.bin/gcore/gcore.1 1.31.18.1 +35 -34 src/usr.bin/gcore/gcore.c