From owner-cvs-src-old@FreeBSD.ORG Wed Jul 14 17:16:41 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 E3CA41065700 for ; Wed, 14 Jul 2010 17:16:41 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id D1CB88FC1B for ; Wed, 14 Jul 2010 17:16:41 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o6EHGfW6079676 for ; Wed, 14 Jul 2010 17:16:41 GMT (envelope-from attilio@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o6EHGfPY079675 for cvs-src-old@freebsd.org; Wed, 14 Jul 2010 17:16:41 GMT (envelope-from attilio@repoman.freebsd.org) Message-Id: <201007141716.o6EHGfPY079675@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to attilio@repoman.freebsd.org using -f From: Attilio Rao Date: Wed, 14 Jul 2010 17:16:25 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/gcore 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: Wed, 14 Jul 2010 17:16:42 -0000 attilio 2010-07-14 17:16:25 UTC FreeBSD src repository Modified files: usr.bin/gcore elfcore.c extern.h gcore.1 gcore.c Log: SVN rev 210063 on 2010-07-14 17:16:25Z by attilio 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. Sponsored by: Sandvine Incorporated Discussed with: kib Reviewed by: emaste Tested by: Sandvine Incorporated MFC after: 2 weeks Revision Changes Path 1.23 +10 -5 src/usr.bin/gcore/elfcore.c 1.6 +4 -1 src/usr.bin/gcore/extern.h 1.17 +9 -1 src/usr.bin/gcore/gcore.1 1.36 +7 -4 src/usr.bin/gcore/gcore.c