From owner-cvs-all Mon Aug 24 09:25:39 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA21251 for cvs-all-outgoing; Mon, 24 Aug 1998 09:25:39 -0700 (PDT) (envelope-from owner-cvs-all) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA21245; Mon, 24 Aug 1998 09:25:35 -0700 (PDT) (envelope-from wosch@FreeBSD.org) From: Wolfram Schneider Received: (from wosch@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id JAA14655; Mon, 24 Aug 1998 09:25:31 -0700 (PDT) Date: Mon, 24 Aug 1998 09:25:31 -0700 (PDT) Message-Id: <199808241625.JAA14655@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/usr.bin/gcore gcore.c Sender: owner-cvs-all@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wosch 1998/08/24 09:25:31 PDT Modified files: usr.bin/gcore gcore.c Log: Check the text segment size of the executable and the process. If not equal, the command line arguments are wrong. E.g.: $./gcore /bin/sh 1761 $ ./gcore /usr/tmp/chroot/bin/sh 1761 gcore: The executable /usr/tmp/chroot/bin/sh does not belong to process 1761! Text segment size (in bytes): executable 303104, process 294912 Revision Changes Path 1.8 +9 -1 src/usr.bin/gcore/gcore.c